Skip to content
Discussion options

You must be logged in to vote

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.

onDismiss={(ev) =>  {
  if (ev.key === 'escape') { .... }
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@adnanjalloh
Comment options

Answer selected by micahgodbolt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants