-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Dragged note highlighting #2684
Dragged note highlighting #2684
Conversation
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.
Please update your PR
handleDrop={(e) => this.handleDrop(e, storage, folder, dispatch, location)} | ||
handleDragEnter={this.handleDragEnter} | ||
handleDragLeave={this.handleDragLeave} | ||
handleDrop={(e) => { |
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.
Can you move e.prevenDefault()
to the this.handleDrop
?
e.preventDefault() | ||
this.handleDrop(e, storage, folder, dispatch, location) | ||
}} | ||
handleDragEnter={(e) => { |
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.
Can you move e.prevenDefault()
to the this.handleDrop
?
browser/main/SideNav/StorageItem.js
Outdated
this.handleDragEnter(e, folder.key) | ||
}} | ||
handleDragLeave={(e) => { | ||
e.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.
Can you move e.prevenDefault()
to the this.handleDrop
?
Thanks for implementing this. Never had time to do it myself but it is really needed (imho). Thanks :) |
Already changed the e.preventDefault() to the respective handlers. @ehhc Your welcome, I'm glad to be part of the project. |
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.
LGTM 🎉 Thank you for your contribution
Description
Changes the highlighting to more noticeable when a note is dragged over a folder.
Issue fixed
#1885
Type of changes
Checklist: