-
-
Notifications
You must be signed in to change notification settings - Fork 602
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-kit/react (beta). Wrong nested scrollable elements activating #1429
Comments
Which version are you using? I've released several beta versions under the beta tag on npm https://www.npmjs.com/package/@dnd-kit/react?activeTab=versions |
@clauderic screen recorded on 0.0.2-beta-20240610024106 |
That's a relatively recent version so likely still a bug. Can you create a small replication case in CodeSandbox or similar so I can investigate? |
It's fixed now: Fixed by this commit: Available in the latest beta release: Let me know if you run into any other issues with the beta packages :) |
@clauderic |
I pushed a small tweak to the auto scroller that should make this behave more like most consumers would expect, try it out and let me know what you think. |
its work perfect, thankyou. |
Greetings!
Thank you for publishing the experimental beta-branch in npm.
I want to use @dnd-kit/react for kanban-board. But I encountered a bug.
I have one
DragDropProvider
and several nested scrollable elements with draggables located inside them (useDraggable({...})).When I start dragging the first element, everything works well, autoscroll works correctly.
But if then I start dragging an element from another container, the first container will still scroll.
Is this a bug? or am I doing something wrong?
I am attaching a video demonstration:
2024-06-10.22-07-26.mp4
The text was updated successfully, but these errors were encountered: