Stop the "Escape" key event from bubbling to prevent other event listeners #5601
Unanswered
AlexMachin1997
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I'm using the react-select component within a modal and so far it has worked well. However, I'm having an issue related to the event bubbling.
Within my project modal we are listening for the "Escape" key to be clicked and it work's fine, however, when used with react-select within a modal when you click the "Escape" key it also closes the modal.
Is there a way to stop the event from bubbling ?
I've already tried stopping the stopPropagation approach with no luck, I'm asking here as someone has likely encountered this exact same issue already hopefully 😓
Any comments or feedback is appreciated.
Beta Was this translation helpful? Give feedback.
All reactions