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
Bug report
Current Behavior
When rendering a
Modal
inside aDropdownMenu
anyinput
,textarea
, etc will have theSpace
andEnter
keys intercepted. It is not possible to typeSpace
orEnter
into theinput
fields.Expected behavior
Space
andEnter
should work wheninput
is focused the same way it does, when not rendered inside a Modal inside a DropdownMenuReproducible example
CodeSandbox
Your environment
See sandbox
latest
17.0.1