primitives icon indicating copy to clipboard operation
primitives copied to clipboard

[DropdownMenu] First menu item is selected when trigger is clicked on mobile device

Open hyper-sam opened this issue 2 years ago • 1 comments

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).

output

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

hyper-sam avatar Aug 16 '22 09:08 hyper-sam

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.

benoitgrelard avatar Sep 06 '22 10:09 benoitgrelard

I can't reproduce this on Android or emulation on desktop, I assume this is fixed and can be closed?

NicoToff avatar May 01 '24 21:05 NicoToff

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.

hyper-sam avatar May 03 '24 08:05 hyper-sam