Skip to content

Don't run light dismiss on right click#11185

Closed
josepharhar wants to merge 1 commit into
whatwg:mainfrom
josepharhar:contextmenupopover
Closed

Don't run light dismiss on right click#11185
josepharhar wants to merge 1 commit into
whatwg:mainfrom
josepharhar:contextmenupopover

Conversation

@josepharhar

@josepharhar josepharhar commented Apr 2, 2025

Copy link
Copy Markdown
Contributor

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
@josepharhar

Copy link
Copy Markdown
Contributor Author

This would alternatively be addressed by this, so I'm not sure we should merge this PR at this time w3c/pointerevents#542 (comment)

@josepharhar

Copy link
Copy Markdown
Contributor Author

closing this in favor of #11536

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