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

Having Tree on a page prevents unrelated draggable elements from dragging #262

Closed
goliney opened this issue Jul 29, 2024 · 2 comments
Closed

Comments

@goliney
Copy link

goliney commented Jul 29, 2024

If you have an element with draggable="true" and the <Tree /> component is on the same page, the draggable element can't be dragged:

Jul-29-2024.16-24-41.mp4

Tree should not disrupt the dragging of unrelated elements.

Could be related to #17

@goliney
Copy link
Author

goliney commented Jul 29, 2024

Specifying dndRootElement solves the issue. Thanks to this comment: #17 (comment)

@goliney goliney closed this as completed Jul 29, 2024
@goliney
Copy link
Author

goliney commented Jul 30, 2024

It's worth mentioning, you should make sure that dndRootElement exists when you mount the component: #263

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