Skip to content

Don't run light dismiss on right click #11185

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

josepharhar
Copy link
Contributor

@josepharhar josepharhar commented Apr 2, 2025

This fixes a bug where showing a popover during the contextmenu event handler immediately gets light dismissed as soon as the user lifts up on the mouse button because the contextmenu event is fired in between pointerdown and pointerup.

Fixes #10905

(See WHATWG Working Mode: Changes for more details.)


/infrastructure.html ( diff )
/interactive-elements.html ( diff )

This fixes a bug where showing a popover during the contextmenu event
handler immediately gets light dismissed as soon as the user lifts up on
the mouse button because the contextmenu event is fired in between
pointerdown and pointerup.

Fixes whatwg#10905
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
normative change topic: dialog The <dialog> element topic: popover The popover attribute and friends
Development

Successfully merging this pull request may close these issues.

Popovers are broken when shown in a contextmenu event listener
2 participants