radix-ui / primitives

Radix Primitives is an open-source UI component library for building high-quality, accessible design systems and web apps. Maintained by @workos.
https://radix-ui.com/primitives
MIT License
15.93k stars 833 forks source link

Dialog inside Dropdown Menu incorrectly intercepts Enter and Space #3232

Open danielkov opened 1 week ago

danielkov commented 1 week ago

Bug report

Current Behavior

When rendering a Modal inside a DropdownMenu any input, textarea, etc will have the Space and Enter keys intercepted. It is not possible to type Space or Enter into the input fields.

Expected behavior

Space and Enter should work when input is focused the same way it does, when not rendered inside a Modal inside a DropdownMenu

Reproducible example

CodeSandbox

Your environment

See sandbox

Software Name(s) Version
Radix Package(s) latest
React n/a 17.0.1
Browser Chrome, FF, Safari n/a
Assistive tech
Node n/a
npm/yarn
Operating System