8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6dd6e5 commit 7703081Copy full SHA for 7703081
src/react-sortable.tsx
@@ -319,8 +319,9 @@ Please read the updated README.md at https://github.com/SortableJS/react-sortabl
319
onDeselect(evt: MultiDragEvent) {
320
const { list, setList } = this.props;
321
const newList = [...list].map(item => ({ ...item, selected: false }));
322
- evt.oldIndicies.forEach(curr => {
+ evt.newIndicies.forEach(curr => {
323
const index = curr.index;
324
+ if (index === -1) return;
325
newList[index].selected = true;
326
});
327
setList(newList, this.sortable, store);
0 commit comments