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.39k stars 768 forks source link

[Dropdown Modal] using ItemIndicator inside SubTrigger causes flickering of sub menu #3082

Open matr369 opened 3 weeks ago

matr369 commented 3 weeks ago

Bug report

Current Behavior

Using ItemIndicator inside SubTrigger causes flickering of sub menu

https://github.com/user-attachments/assets/5fc8c0ed-4d39-48de-8f98-a1e5952c97ec

`

{option?.children?.map((child) =>
{child.name}
)}
` ### Expected behavior No flickering when drag cursor. ### Your environment | Software | Name(s) | Version | | ---------------- | ------- | ------- | | Radix Package(s) | "@radix-ui/react-dropdown-menu" | "^2.1.1" | | React | n/a | | | Browser | | | | Assistive tech | | | | Node | n/a | | | npm/yarn | | | | Operating System | | |
ciaranmccaughey commented 2 weeks ago

I am also having this issue. It happens when DropdownMenu is a component in AlertDialog, Dialog and Sheet.

thekyuba commented 2 weeks ago

Same here, but I noticed it only happens in the development bundle, when running it on localhost