You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[bug] Multidrag select with SHIFT doesn't respect filtered items #1897
When I am using multidrag, I select an item, hold shift while selecting another item and all the items between these 2 will be selected too.
I have a list with draggable items on it. Some of these items are filtered out by the filter property on the Sortable configuration.
If one of these filtered items are between the 2 selected items (while holding SHIFT), I can select and sort it.
To Reproduce
Steps to reproduce the behavior:
Select an item before a filtered item
Hold SHIFT and select a item after a filtered item
The filtered item will be selected
Drag all the items and the filtered item will be dragged too
Expected behavior
The filtered items shouldn't be selected.
Information
I think the codesandbox will be enough to understand the bug.
Inside it there will be 4 items. Item "three" is filtered out and you can't move it (unless you are using the bug described here).
Activity
#1897: Prevent multi-select of non-draggable and filtered items
owen-m1 commentedon Nov 24, 2024
Fixed in 1.15.4
[Snyk] Upgrade sortablejs from 1.15.3 to 1.15.6 (#11)