Provide additional onEscapeKeyDown
for Dialog
#2566
samesfahani-tuplehealth
started this conversation in
Ideas
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.
-
I need the ability to call a function when esc is used within a Dialog but not on click outside of the bounds. Currently,
onClose
captures both:I suggest providing a way to capture one or the other in addition to both, similar to RadixUI's Dialog:
https://www.radix-ui.com/docs/primitives/components/dialog#content
Beta Was this translation helpful? Give feedback.
All reactions