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

Droppable should only accept Draggables of same type ... but it doesn't work #2571

Closed
devnull69 opened this issue Mar 15, 2024 · 1 comment
Closed

Comments

@devnull69
Copy link

Expected behavior

When you use the type prop on Droppables and Draggables, I expect only Draggables of the same type to be droppable. But instead, the type of the draggable is not correctly considered

Actual behavior

When dropping a draggable of type B to a droppable of type A, the type of the draggable is shown as A and the drop is accepted

Steps to reproduce

Please see this stackblitz

What version of React are you using?

^18.2.0

What version of react-beautiful-dnd are you running?

^13.1.1

What browser are you using?

Firefox latest

@devnull69 devnull69 closed this as not planned Won't fix, can't repro, duplicate, stale Mar 15, 2024
@devnull69
Copy link
Author

I found out that Draggables automatically inherit their type from the Droppable they are placed in. Therefore, my concept was bad and no fix is necessary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant