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.35k stars 765 forks source link

Chrome's autofill recommendations close HoverCard.Content #2502

Open Strahinja-Samardzija opened 10 months ago

Strahinja-Samardzija commented 10 months ago

Bug report

Current Behavior

When autofill dropdown for an pops up in Google Chrome, selecting an option or hovering over it closes the HoverCard.Content.

Also it is almost impossible to use devtools for HoverCard.Content because it closes when mouse hovers away to devtools tab.

Expected behavior

It treats Chrome's menus and other option pop-ups as children of HoverCard.Content and not lose focus-within and set data-state="close".

Reproducible example

Put a form with input type="username" or "email" inside HoverCard.Content. Try to select or hover over an autofill recommendation.

kotAPI commented 10 months ago

Yeah, this is an annoying behavior of the Select, it's not a native implementation, so it doesn't work like it.

benoitgrelard commented 6 months ago

Do you have a sandbox showing the issue?