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

Destroying droppedPanel produce errors #1

Open
aebsubis opened this issue Mar 11, 2015 · 0 comments
Open

Destroying droppedPanel produce errors #1

aebsubis opened this issue Mar 11, 2015 · 0 comments

Comments

@aebsubis
Copy link

Uncaught TypeError: Cannot read property 'dom' of undefined

https://github.com/m4dc4p/draggable/blob/v07182011/draggable.js#L73

Destroying the dragged element before finishing the "avterValidDrop" method was causing problems since the drop event did not finish properly. I've managed to solve it by delaying the destroy action:

setTimeout(function() {droppedPanel.destroy(); }, 0);

PD: Thanks for that excellent example!

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