Working with Panel component and esc button #24519
Answered
by
micahgodbolt
adnanjalloh
asked this question in
Q&A
-
Hi all, How could I disable the ESC button to close the panel or prevent the user from closing it by pressing the ESC button is there a way to do that? |
Beta Was this translation helpful? Give feedback.
Answered by
micahgodbolt
Aug 26, 2022
Replies: 1 comment 1 reply
-
Since you can control the state of the panel (isOpen) you can look at the key coming in from the onDismiss, and be selective about when you dismiss.
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
micahgodbolt
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since you can control the state of the panel (isOpen) you can look at the key coming in from the onDismiss, and be selective about when you dismiss.