Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dnd useSortable(isDragging), re-order is not working completely with either virtua or react-virtuso #1571

Open
ritikaGupta4 opened this issue Dec 19, 2024 · 0 comments

Comments

@ritikaGupta4
Copy link

ritikaGupta4 commented Dec 19, 2024

I have a use-case: where on dragging an element I was to show a bottom-border over which that active element is getting dragged over. Hence, reorder is not working
But due to virtualization, useSortable might lose track of the elements that are virtualized out of the DOM.

Please Refer:
virtua: https://codesandbox.io/p/sandbox/7wsm3j
react-virtuoso: https://codesandbox.io/p/sandbox/grz2w2 (this is what we currently use in our code base)

You'll observe and red border stops coming after some-point, but i want it to continue.
is there a way useSortable gets the track of elements that are virtualized.

@ritikaGupta4 ritikaGupta4 changed the title dnd draggable, useSortable is not working completely with either virtua or react-virtuso dnd useSortable(isDragging) is not working completely with either virtua or react-virtuso Dec 19, 2024
@ritikaGupta4 ritikaGupta4 changed the title dnd useSortable(isDragging) is not working completely with either virtua or react-virtuso dnd useSortable(isDragging), re-order is not working completely with either virtua or react-virtuso Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant