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

Select mutiple Item using shift key will return wrong count in listbox (ROD enabled)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 5.0.10
    • Fix Version/s: 5.0.11, 6.0.1
    • Component/s: Components
    • Security Level: Jimmy
    • Labels:

      Description

      1.Select first row and click the button,the count is 1
      2.Select second row, hold down shift key , click the third row and click the button,
      we will see the count is 3

      <zk xmlns:w="client">
      	<window border="normal" title="hello">
      		<custom-attributes org.zkoss.zul.listbox.rod="true" />
      
      		<button
      			onClick="label.value=String.valueOf(listbox.getSelectedCount())"
      			id="btn" label="Click Me " />
      		<label id="label" />
      
      		<listbox id="listbox" multiple="true" rows="10" width="200px">
      			<listitem label="1" />
      			<listitem label="2" />
      			<listitem label="3" />
      			<listitem label="4" />
      			<listitem label="1" />
      			<listitem label="2" />
      			<listitem label="3" />
      			<listitem label="4" />
      			<listitem label="3" />
      			<listitem label="4" />
      			<listitem label="4" />
      		</listbox>
      	</window>
      </zk>

        Attachments

          Activity

            People

            • Assignee:
              TonyQ TonyQ
              Reporter:
              matthewgo matthewgo
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: