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

combobox invokes onChange listener twice when clearing its value

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 9.0.0.1, 10.0.2
    • None
    • Security Level: Jimmy
    • None

      Steps to Reproduce

      1. select 1st item
      2. clear the value with backspace
      3. click outside of the combobox or pressing Tab key

      Current Result

      it shows 2 messages

      Expected Result

      it shows 1 message

      Debug Information

      • onSelect still fires onChange in Combobox.service()
        			if (oldSel != null && !oldSel.equals(_selItem) && oldSel.getLabel().equals(val))
        				Events.postEvent(new InputEvent(Events.ON_CHANGE, this, val, val));
        

      Workaround

      • listen to onSelect

            Unassigned Unassigned
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: