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

fix(menu): fix menu tapping behaviors on iOS and do not close on anchor click #5061

Closed
wants to merge 1 commit into from

Conversation

copybara-service[bot]
Copy link

fix(menu): fix menu tapping behaviors on iOS and do not close on anchor click

fixes #5036
fixes #5015

iOS has some really bad behaviors when it comes to clicking and focus. clicking on the body on a non-clickable item (like anything outside a menu) does not tirgger a click event that bubbles to menu. Also, clicking on a button does not cause it to be focused, thus depriving us of information on focusout's related target. Therefore we have to assume the anchor is the trigger.

@copybara-service copybara-service bot force-pushed the cl/571227552 branch 4 times, most recently from fdb5b18 to a0a75c8 Compare October 10, 2023 05:27
…or click

fixes #5036
fixes #5015

iOS has some really bad behaviors when it comes to clicking and focus. clicking on the body on a non-clickable item (like anything outside a menu) does not tirgger a click event that bubbles to menu. Also, clicking on a button does not cause it to be focused, thus depriving us of information on focusout's related target. Therefore we have to assume the anchor is the trigger.

PiperOrigin-RevId: 572137765
@copybara-service copybara-service bot closed this Oct 10, 2023
@copybara-service copybara-service bot deleted the cl/571227552 branch October 10, 2023 05:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Menu closes and reopens on anchor click with touch screen [menu] iOS: tapping outside menu does not close it
0 participants