You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
patrickhlauke
changed the title
Dropdown trigger button "swallows" Esc keypresses when focused
v5: Dropdown trigger button "swallows" Esc keypresses when focused
Mar 24, 2021
Split off from #23507 (comment) (which is an issue about v4).
If a modal dialog contains a dropdown,
Esc
is swallowed/intercepted by the dropdown trigger button even when the dropdown itself is closed.Instead, the keypress should not be handled when the dropdown is closed, letting it bubble up to the modal.
See the demo https://codepen.io/Jarek3000/pen/LYxVJJg
Tab
to the dropdown button so it receives focusEsc
- nothing happens, as the keypress is intercepted by the modal codeThe text was updated successfully, but these errors were encountered: