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

Weird selection on listbox if onSelect invalidates and shift+Click

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0.9
    • Component/s: None
    • Labels:
      None

      Description

      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>

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

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