Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-3145

Chosenbox focus() does not give focus to the input field

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.0.2
    • 8.0.2
    • None
    • Security Level: Jimmy
    • None

      using chosenbox.focus() does not focus the chosenbox text field. (java or javascript)
      Possibly due to the chosenbox widget root being a <i> element instead, and not allowed in widget.focus()

      	focus: function (timeout) {
      		var n = this.jq[0];
      		if (!n || !n.focus) return false;
      		if (!jq.nodeName(n, 'button', 'input', 'textarea', 'a', 'select', 'iframe'))
      			return false;
      		if (timeout >= 0) setTimeout(function() {_focus(n);}, timeout);
      		else _focus(n);
      		return true;
      	}
      
      

            DevChu DevChu
            MDuchemin MDuchemin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h