primitives
primitives copied to clipboard
[DropdownMenu] First menu item is selected when trigger is clicked on mobile device
Bug report
Current Behavior
If user clicks bottom part of trigger button then menu content flashes on screen and first item is selected. This issue is at least present on Android 12 with Firefox 103.2.0. It can be also reproduced on desktop version of Chrome (Version 104.0.5112.79, macOS 12.5) when mobile device simulation is on (dev tools).
Expected behavior
If user clicks bottom part of trigger button it should just open the menu content.
Reproducible example
https://www.radix-ui.com/docs/primitives/components/dropdown-menu
Suggested solution
Additional context
Your environment
Software | Name(s) | Version |
---|---|---|
Radix Package(s) | @radix-ui/react-dropdown-menu | 1.0.0 |
Browser | Firefox | 103.2.0 |
Operating System | Android | 12 |
I can confirm this is an issue on touch devices, including iOS.
I think this will be addressed by #657 as we do in Select
.
I can't reproduce this on Android or emulation on desktop, I assume this is fixed and can be closed?
I can't reproduce this on Android or emulation on desktop, I assume this is fixed and can be closed?
I can't reproduce this either anymore.