Skip to content

MultiDrag: onDeselect not works correctly #106

@jhonct12

Description

@jhonct12

Hello again!!

I was testing the MultiDrag component, as a guide to the example of :https://github.com/SortableJS/react-sortablejs/blob/master/examples/components/multidrag.tsx

Everything works fine when it's one to one and select one per action.

It turns out that if two or more items are selected and then one of these is removed and given to any other item, the component stops working properly.

I reproduced the error and apparently it is in the event of onDeselect, evt.oldIndicies It does not contain the index, its value is undefined.

console generate error:

image

ezgif com-video-to-gif(2)

ezgif com-video-to-gif(3)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions