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

Different mousedown behavior between Firefox and Chrome/Safari #201

Open
nuragic opened this issue Apr 10, 2018 · 1 comment
Open

Different mousedown behavior between Firefox and Chrome/Safari #201

nuragic opened this issue Apr 10, 2018 · 1 comment

Comments

@nuragic
Copy link

nuragic commented Apr 10, 2018

Hi,

After reading this issue and realizing that Chrome and Firefox handle the change event in different ways, I cannot find an answer to this one... I made a simple pen to illustrate the example (no React, just plain HTML): https://codepen.io/nuragic/pen/xWMaGN?editors=1011

Steps to reproduce

Just click on the select and pick any value.

Results

Chrome / Safari:

"onmousedown"
"onchange"

Firefox:

"onmousedown"
"onmousedown"
"onchange"

😕

The spec https://w3c.github.io/uievents/#event-type-mousedown says:

A user agent MUST dispatch this event when a pointing device button is pressed over an element.

Could anyone clarify which one is correct (or if both are ok)?

Thanks!

@nuragic nuragic changed the title [Question] select change + mousedown behavior Different mousedown behavior between Firefox and Chrome/Safari Feb 10, 2019
@nuragic
Copy link
Author

nuragic commented Feb 11, 2019

Hello... just wanted to ping spec editors in the hope they could clarify 🙏 Thanks!

@garykac @travisleithead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants