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

Combobox losing focus after performing autocomplete in IE

    XMLWordPrintable

    Details

      Description

      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>
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rudyhuang rudyhuang
              Reporter:
              rudyhuang rudyhuang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: