base-ui icon indicating copy to clipboard operation
base-ui copied to clipboard

Cannot type on input inside a popover inside a menu

Open lebadapetru opened this issue 1 year ago • 5 comments

Bug report

Current behavior

I simply cannot type inside an input that is placed inside a popover inside the menu, it looks like its losing focus after you hit the first key.

Expected behavior

I should be able to interact with any element inside a menu.

Reproducible example

https://codesandbox.io/p/sandbox/elastic-browser-s2dfsq

Base UI version

"@base-ui-components/react": "^1.0.0-beta.3",

Which browser are you using?

Chrome

Which OS are you using?

Mac OS

lebadapetru avatar Sep 13 '25 16:09 lebadapetru

Very similar to https://github.com/mui/base-ui/issues/2693

It's intended that menu items (including menu radio/checkbox items) are the only permitted interactive elements right now

mj12albert avatar Sep 13 '25 23:09 mj12albert

@mj12albert , any idea if the popover component will be allowed in the menu, in the future and if there's a timeline of it? Or is it a workaround for this?

lebadapetru avatar Sep 15 '25 10:09 lebadapetru

@lebadapetru use the Popover component instead of Menu if you need complex interactions like this. The buttons inside the popover can just be styled to look like menu items

atomiks avatar Sep 25 '25 14:09 atomiks

@atomiks i am facing the same issue , is there is any temporary workaround to make the input field work inside MenuContent ?

or is it possible to render a popover inside MenuContent ?

sreehari-credhive avatar Oct 27 '25 12:10 sreehari-credhive

+1

amigo70707 avatar Mar 30 '26 08:03 amigo70707