Open goleary opened 11 months ago
If I use a controlled version of the menu the problem seems to go away.
running into the same problem. i can also fix it by adding transform: translate(0,0)
on the trigger when not using the controlled version.
have also run into this with the Select
component
I am nearly certain that this is due to DropdownMenuTrigger
using an onPointerDown
event to control the context state instead of onClick
, unlike CollapsibleTrigger
and others where this issue does not occur. So the reason your controlled example works is because it is using an onClick
handler.
onPointer*
events are historically super buggy in iOS so this is not surprising.
I'm surprised that no one has fixed this issue until now.
Bug report
Current Behavior
Certain clicks/taps on the dropdown trigger on iOS do not open the dropdown despite firing native click listener. This only happens on iOS.
https://www.loom.com/share/1cab93d5be2c4a0fbaad8a0d9cf51992
Expected behavior
I expect all clicks/taps on the trigger to open the dropdown
Reproducible example
https://codesandbox.io/p/sandbox/recursing-knuth-qt3rpm?file=%2Fsrc%2FApp.tsx%3A17%2C29
Suggested solution
Additional context
Your environment