[SOLVED] autofocused Input in a Form in a Dialog doesn't close the dialog, or blur the input when pressing on Escape key #9003
-
When a the 3rd example from the docs website for a large dialog, shows this. What is your guys' work around for this? i would like to close the dialog when pressing escape. even when an input element is focused, or blur the element at the very least so i can just press escape twice to exit the dialog. when adding an onKeyDown prop to the textField to listen for the "Escape" key , it doesn't fire, i'm guessing the parent dialog intercepts this. and ofcourse this prop isn't supported on the react-aria Dialog component. Any help would be much appreciated |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
I wasn't able to reproduce this. Can you send more information? This is the 'Register for newsletter' example, correct? Are you using a specific browser? |
Beta Was this translation helpful? Give feedback.
i figured it out, it was vimium I apologize. hehehe, I feel so dumb