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

Comboitem.setContent(..) breaks keyboard selection

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Normal Normal
    • None
    • 10.0.0
    • Components
    • None
    • Create a combobox and comboitem where the setContent(..) method is used (=no model). When trying to select items, the value of the combobox is emptied as comboitem.getLabel() returns an empty string => not usable via keyboard

      Steps to Reproduce

      1. Create a combobox and comboitem where the setContent(..) method is used (=no model).
      2. Try to select item using up/down on the keyboard

      Current Result

      After selection of 1st item, it deselects and the cursor jumps back into the textbox

      Expected Result

      Keyboard selection is possible (without holding shift)

      Debug Information

       

      Workaround

      Press shift while navigating through the comboitems (according to docs, arrow keys should be enough: https://www.zkoss.org/wiki/ZK_Component_Reference/Input/Combobox#Keyboard_Navigation_Combobox )

            hawk hawk
            chemFelix chemFelix
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 2 hours
                2h
                Remaining:
                Remaining Estimate - 2 hours
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified