-
Notifications
You must be signed in to change notification settings - Fork 454
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
Hotfix/ie paste #162
Hotfix/ie paste #162
Conversation
src/DataSheet.js
Outdated
// Listen for Ctrl + V in case of IE | ||
if (isIE) { | ||
var thisContext = this | ||
document.addEventListener('keydown', function (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.
you can use lamda function here not to have an extra var here for passing context. Or bind the function
src/DataSheet.js
Outdated
// Listen for Ctrl + V in case of IE | ||
if (isIE) { | ||
var thisContext = this | ||
document.addEventListener('keydown', function (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.
On component will unmount, remove the event listener as well
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.
Thank you for the pr @bsbimalbose , if you can fix the comments, will go ahead and merge this pr
@nadbm I've updated the code. Please merge this PR |
This fixes the multi-cell paste issue in IE