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

Stepper: replace onMousedown by onClick for consistency #1448

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

nicooprat
Copy link
Contributor

@nicooprat nicooprat commented Nov 22, 2024

Using mousedown event can lead to some edge cases.

In our app, changing step changes the modal content, thus its height, and a mouseup event would then be fired outside the modal: so changing step was actually closing the modal... it was hard to find why!

Also, this would be better for accessibility because I think using enter actually trigger the click event natively.

I can't think of any reason why using mousedown would be better, but I might be wrong!

Related: #1330

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

Successfully merging this pull request may close these issues.

1 participant