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

This library would be closer to perfect with just one minor addition #107

Open
vikingvynotking opened this issue Jun 9, 2022 · 0 comments
Labels

Comments

@vikingvynotking
Copy link

This library's looking pretty decent so far, and yes I know it's a little bit old and rusty and probably not very well maintained, but one feature addition will make it a whole lot better, and that is adding support for the ondragleave API method.

Some background: I have a client with a stable vue-2 based site, and who now wants to add some drag'n'drop functionality. They're not willing to move to vue-3, so I have to find a solution that works with vue 2.6.14, and this library does the trick.. almost. One thing we'd like to have is changing the ghost/ target element to reflect the state of the drop target after the drop (like.. dropping this item here will change the state of the here-thing from red to purple). I can see how to achieve this (onDragenter does the job), but not the corresponding "change back to red" when the dragged item leaves the drop target.

This seems like a simple and reasonable addition, so my hope remains that it can be added without too much trouble.

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

No branches or pull requests

1 participant