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

Weird selection on listbox if onSelect invalidates and shift+Click

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 5.0.9
    • None
    • None
    • None

      http://www.zkoss.org/forum/listComment/17353/1/20
      try following case
      1.select a listitem,
      2.shift-select another item, you will see the selection is now incorrect.

      <zk>
      <zscript>
      ListModel strset = new org.zkoss.zksandbox.grid.FakeListModel(20000);
      </zscript>
      <listbox id="list" width="200px" rows="10" model="${strset}" onSelect="list.invalidate()" multiple="true">
      <listhead>
      <listheader label="Load on Demend" sort="auto"/>
      </listhead>
      </listbox>
      <button id="btn" label="focus"/>
      </zk>

            tomyeh tomyeh
            dennis dennis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h