-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[Select] No longer listens to click events #18655
Comments
@aceluby It sounds like you will need to update your tests. I suspect it will impact a couple of more users. This makes me think of a recent tweet @diegohaz did, which leads to: https://github.com/testing-library/user-event. @eps1lon What would you recommend? |
Isn't that a major (or even breaking) change? |
We have seen the same feedback from people using test snapshot. I agree, it would have been better to release it under a minor. |
In SemVer this is equivalent terminology. However, it was a bug fix. If you're relying on buggy behavior than you might consider this a breaking change. We prioritize bug free software over software that doesn't change.
I would agree that the changelog entry was not very obvious:
Instead we should've written
or something like that. |
Current Behavior 😯
All my tests fail in version 4.7.1 when I fire click events to start the Select process. I instead have to use 'mouseDown' events in order for tests to work properly. The PR that impacted this is here: #17978
Expected Behavior 🤔
I'd expect click events to bring up the dropdown menu as it was in previous versions
Steps to Reproduce 🕹
https://codesandbox.io/s/create-react-app-2pyv7?fontsize=14
Steps:
Context 🔦
I have multiple tests where I click select elements as part of the test. Every one of those tests now break as part of the newest release. To me, this feels like a breaking change without any notification the change even occurred, I had to scour through the PR to see why it had happened.
Your Environment 🌎
The text was updated successfully, but these errors were encountered: