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

Drag element does not reset when dropping not on target #78

Open
achmad-firdaus-vpn opened this issue Nov 18, 2022 · 0 comments
Open

Drag element does not reset when dropping not on target #78

achmad-firdaus-vpn opened this issue Nov 18, 2022 · 0 comments

Comments

@achmad-firdaus-vpn
Copy link

Hello, looking at the demo I saw that the item's position is being reset after dropping anywhere outside the target

demo

But in my implementation somehow the item's position is not being reset when directly dropping outside of the target
Clicking the dragged item once will reset the position, but the original element is still hidden, making the layout weird when trying to resize the view area (it seems that the ghost/drag element is still visible and the parent element is still invisible)

implementation

Implementation:
https://codesandbox.io/s/drag-and-drop-heqsqx

Thank you for the library and I hope you have a great day!

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