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

Combobox losing focus after performing autocomplete in IE

XMLWordPrintable

      Steps to Reproduce

      https://zkfiddle.org/sample/qotehf/1-ZK-4588

      Type a, b slowly. Then wait a second.

      Current Result

      "abacus" was selected, and the focus was missing.

      Expected Result

      "abacus" was selected, but the focus was preserved. "acus" was type-ahead and selected.

      Debug Information

      Only on IE.
      Firefox and Chrome are okay.

      A side effect of ZK-4383.

      Workaround

          <script><![CDATA[
          zk.afterLoad('zul.inp', function() {
            var xCombobox = {};
            zk.override(zul.inp.Combobox.prototype, xCombobox, {
              setRepos: function() {
                  if (this.desktop && zk.ie) {
                      var n = this.getInputNode();
                      n.value = this.valueEnter_ != null ? this.valueEnter_ : this._value || '';
                  }
                  xCombobox.setRepos.apply(this, arguments);
              }
            });
          });
          ]]></script>
      

            Leon03 Leon03
            rudyhuang rudyhuang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 2 days
                2d
                Remaining:
                Remaining Estimate - 2 days
                2d
                Logged:
                Time Spent - Not Specified
                Not Specified