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

Combobox losing input characters

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 9.0.1
    • 8.6.2
    • Components
    • Security Level: Jimmy
    • ZK 9.0.1 S1
    • None

      Steps to Reproduce

      http://zkfiddle.org/sample/27n8vht/4-Combobox-losing-input-characters

      Start typing characters to trigger the combo-popup and drill down possible choices.

      e.g.: a, f, t, [backspace], [backspace], f, t, [backspace], [backspace], ... repeat

      Current Result

      Using varying typing speed sometimes typed characters are removed from the input element. 

      Expected Result

      characters once typed should remain in the combobox and be used to drill down the choices 

      Debug Information

      Seems to relate to the onChanging interval of 350ms

      Workaround

      commented out in the linked zkfiddle example

          zk.afterLoad('zul.inp', function() {
            var xCombobox = {};
            zk.override(zul.inp.Combobox.prototype, xCombobox, {
              setRepos : function() {
                this.valueEnter_ = this.getInputNode().value;
                return xCombobox.setRepos.apply(this, arguments);
              }
            });//zk.override
          });//zk.afterLoad
      

       

       

            rudyhuang rudyhuang
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 4 hours
                4h
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours
                4h