-
Bug
-
Resolution: Fixed
-
Major
-
5.0.10
I am having issue with Listbox selecting rows after upgrading zk to 5.0.10.
When I select multiple items in Listbox by holding the shift key getSelectedItems() method return 0 rows.
It's returning selected rows if I use ctrl + click. In version 5.0.5 it's working as expected.
Use case.
1. Selecting row one.
2. Scrolling down to row 30.
3. Holding shift + click on row 30
4. All rows is selected
5. getSelectedItems().size() return 0
Here is sample of my code which working fine in 5.0.5
public void onSelect$lbProductGroup(ForwardEvent event)throws Exception{
Listbox listbox = (Listbox) event.getOrigin().getTarget();
Set<Listitem> listitems = (Set<Listitem>)listbox.getSelectedItems();
System.out.println("list size = " + listitems.size());
for (Listitem listitem : listitems) {
System.out.println("value = " + listitem.getValue().toString());
System.out.println("description = " + listitem.getLabel());
}
}