Skip to content

Don't run light dismiss on right click#11185

Open
josepharhar wants to merge 1 commit intowhatwg:mainfrom
josepharhar:contextmenupopover
Open

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

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
@josepharhar
Copy link
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)

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