Closed rodbs closed 1 year ago
Reordering them via DnD is totally up to you. Just make sure to update the order of the selectedItems via the prop passed to useMultipleSelection.
Ok, I'm using @dnd-kit
and it seems to work; I'm having some issues with the events, though ...
make sure to call the getter props like this:
getSelectedItemProps({onKeyDown: theOtherPossibleKeyDown, ...})
Will close this one. If there is a possible issue in downshift let us know. Thanks!
Is it possible to reorder items in the multiselect using drag and drop as in
react-select
? I haven't seen this feature anywhere.Is there any easy workaround to implement it? or would it need to be fully implemented in the code (using a library like
floating-ui
?