-
Notifications
You must be signed in to change notification settings - Fork 934
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
Stop handled key events propagating #633
Stop handled key events propagating #633
Conversation
Also, running the tests locally but I think this might just be my machine, as they both failed locally before my changes, |
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.
Excellent. Thank you!
I wonder if we should use |
Potentially, I think if we are calling I would be a little wary of overusing I think we can safely use |
That makes sense. I think we'll stick with this until someone complains 👍 Thanks! |
🎉 This PR is included in version 3.1.7 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
This reverts commit 5084cd0. The changes as part of #633 were incomplete, did not provide a way to allow downshift to handle event and optionally stop propagation, and incorrectly always stopped event propagation on Escape Keydown events. See discussion in #642 and #643 Whilst we may want to do some stopping of propagation, for now this just reverts that PR so that the events are always propagated.
What: Stop the propagation of keydown events that have been handled by downshift
Why: If I am using downshift inside a component that is also handling key events then it shouldn't be receiving them if downshift has already taken action
How: using
event.stopPropagation()
Checklist:
event.preventDownshiftDefault
, so I don't think there needs to be a new addition to the dos?add-contributors
script failed on my windows machineThis fixes issue #630