[Dialog] Providing onKeyDown breaks closing via Escape #43738
Labels
bug 🐛
Something doesn't work
component: dialog
This is the name of the generic UI component, not the React module!
priority: important
This change can make a difference
regression
A bug, but worse
v6.x migration
Steps to reproduce
Link to live example: codesandbox
Steps:
<Dialog />
.onKeyDown
line.<Dialog />
.Current behavior
When an
onKeyDown
handler is passed to the<Dialog />
component,the
Escape
key does not work to close the<Dialog />
anymore.Expected behavior
Just like it used to in
v5
, the<Dialog />
should close when pressingEscape
even when an
onKeyDown
is supplied inv6
.Context
No response
Your environment
Check the codesandbox.
Search keywords: dialog, onKeyDown, escape
The text was updated successfully, but these errors were encountered: