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

selecting an item doesn't deselect others with a mobile device

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.6.0
    • 8.5.1.2
    • None
    • Security Level: Jimmy
    • None
    • ZK 8.6.0 S1

      Steps to Reproduce

      1. visit the zul with chrome device simulator, iPad

          <listbox id="lb" width="150px"
                   multiple="true" checkmark="false">
              <listitem forEach="1,2,3,4,5" label="item ${each}"/>
          </listbox>
      

      2. select 1st item
      3. select 2nd item

      Current Result

      both items are selected

      Expected Result

      only the 2nd item is selected

      Debug Information

      • with a desktop browser, this issue doesn't happen
      • ensure that the spec is "if no checkmark, selecting one item will de-select others, on desktop and mobile browsers.

      Workaround

      • override zul.select.SelectWidget._doItemSelect()
        if (evt.data.ctrlKey || evt.data.metaKey || (zk.mobile && !this.getCheckmark()))
        

            klyvechen klyvechen
            hawk hawk
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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