Skip to content

Specify MouseEvent in select event.button check - #12733

Open
josepharhar wants to merge 1 commit into
whatwg:mainfrom
josepharhar:selectmouseeventbutton
Open

Specify MouseEvent in select event.button check#12733
josepharhar wants to merge 1 commit into
whatwg:mainfrom
josepharhar:selectmouseeventbutton

Conversation

@josepharhar

@josepharhar josepharhar commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

This event.button check was added to make sure that right clicking a select doesn't open its picker, but since the same algorithm handles keyboard events it should be specific about looking at event.button only on mouse events.

  • At least two implementers are interested (and none opposed):
    • Chromium
  • Tests are written and can be reviewed and commented upon at:
  • Implementation bugs are filed:
    • Chromium: Already implemented
    • Gecko: …
    • WebKit: …
  • Corresponding HTML AAM & ARIA in HTML issues & PRs: not needed
  • MDN issue is filed: not needed
  • The top of this comment includes a clear commit message to use.

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


/form-elements.html ( diff )

This event.button check was added to make sure that right clicking a
select doesn't open its picker, but since the same algorithm handles
keyboard events it should be specific about looking at event.button only
on mouse events.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant