Hello!
I have a weird behavior with a list multiselect and onBeforeSelect event. When selecting a range of items with Shift key, selection occurr even if false is returned.
What I’m trying to achieve is to prevent the selection when a form on the page is dirty.
To repro with this snippet Code Snippet
- Select the first item
o UI shows the first item selected - Click the “getSelectedId(true)” button
o Alert shows “1” - Press and hold the Shift Key, and clic the 5th item
o UI shows the first item selected - Click the “getSelectedId(true)” button
o Alert shows “1,2,3,4,5”, which is wrong (UI shows only first item selected)
NOTE: I simplified the snippet to keep only the erratic behavior, and I know my snippet