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

Dragenter run before dragleave #23

Closed
Tuch opened this issue Jun 19, 2015 · 1 comment
Closed

Dragenter run before dragleave #23

Tuch opened this issue Jun 19, 2015 · 1 comment

Comments

@Tuch
Copy link
Owner

Tuch commented Jun 19, 2015

If droppable-elements are right next to each other, the situation often arises when the dragenter event is invoked before the dragleave event. Because of this, there is an error in logic. ctrl.dropmodel overwritten with the new value, then the event is triggered dragleave with this value at the end of sets ctrl.dropmodel = undefined. As a result, we have a onedroppable-element in target array, but dropmodel = undefined.

See example: http://plnkr.co/edit/tdBHyg032OEK3Kn8ZQZw?p=preview

@Tuch Tuch mentioned this issue Jun 19, 2015
@Tuch
Copy link
Owner Author

Tuch commented Jun 19, 2015

@Tuch Tuch closed this as completed Jun 19, 2015
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