-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat(handlers): add dragenter handler + preventDefaults + more tests + dragging class + debug hooks #9
Conversation
🆗 |
// Check if type is accepted. | ||
if (! accepts(scope.$eval(dropAccept), event)) return true; | ||
|
||
removeDragOverClass(); | ||
// Prevent default to accept drag and drop. | ||
event.preventDefault(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pourquoi ne pas mettre ça au tout début de la fonction ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seulement si le drag&drop est accepté
Quelques remarques et ok. |
c08a9c6
to
95d141d
Compare
🆗 |
1 similar comment
🆗 |
Pas de label "mergeable" ? |
ce n'est pas le 8 ;) |
feat(handlers): add dragenter handler + preventDefaults + more tests + dragging class + debug hooks
added :
event.preventDefault();
as requested in the specBy the way, updated the readme, cleaned some stuff, fixed #4 and partially #2