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
When a textarea element is rendered inside of an ActionMenu.Overlay with some named buttons, random buttons will get focused as the user is typing. This is because the useMnemonics hook ignores keydown events from input elements but not textarea elements here:
Description
When a
textarea
element is rendered inside of anActionMenu.Overlay
with some named buttons, random buttons will get focused as the user is typing. This is because theuseMnemonics
hook ignores keydown events frominput
elements but nottextarea
elements here:https://github.com/primer/react/blob/main/src/hooks/useMnemonics.ts#L40
Steps to reproduce
textarea
element inside of aActionMenu.Overlay
textarea
Version
35.7.0
Browser
Chrome, Safari, Firefox, Edge, iOS Safari
The text was updated successfully, but these errors were encountered: