Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
hyper-sam opened this issue Aug 16, 2022 · 3 comments · May be fixed by #2150
Closed

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

hyper-sam opened this issue Aug 16, 2022 · 3 comments · May be fixed by #2150

Comments

@hyper-sam
Copy link

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
@benoitgrelard
Copy link
Collaborator

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.

@NicoToff
Copy link

NicoToff commented May 1, 2024

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

@hyper-sam
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants