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

Prevent dragging to an area in dragula container? #696

Open
WriterStat opened this issue Jun 8, 2022 · 1 comment
Open

Prevent dragging to an area in dragula container? #696

WriterStat opened this issue Jun 8, 2022 · 1 comment

Comments

@WriterStat
Copy link

Hi All! Thanks for a great kit! And all the hard work.

We have a lib we are using from a third party that in turn uses dragula like many do.

Is it possible... to prevent dragging to an area in a dragula container?

Example: We want to have label divs in our dragula container. It all works great! We prepend/put a label div in the dragula container and we are able to drag both above and below it.

But we'd like the top label div to always stay on top, not allow items to be dragged above it. Is there any way to pin to top? Disallow any dragging above an item/top item?

Note: Clicking these label divs above in our code hide the dragula items below them. Re-clicking them allows them to show.

Thanks! Any workarounds/thoughts appreciated. We need to use one container. so moving the label divs outside or using multiple container divs outside, won't work for us.

@WriterStat
Copy link
Author

All thoughts appreciated, before we start doing crazy things. =)

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