-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Dropdown
onChange
callback should only be called when the selected value changes
#3370
Comments
You can pass |
ah, thanks @husseyexplores ! I agree with you - I think that it makes more sense for |
This is still an issue beyond the |
Superb report, thanks much. The current dropdown calls We need to update the Dropdown to behave just as the regular HTML select in this regard. |
@levithomason , how does @zarend 's PR look? |
Was fixed in #3391 🎉 |
thanks @zarend @levithomason & @layershifter ! |
Bug Report
Steps
Dropdown
withvalue
andonChange
props.Dropdown
and then click outside of the value-displaying-box and dropdown list.Expected Result
The
onChange
callback should not be fired because I haven't selected a new value. This is how HTML'sselect
behaves.Actual Result
The
onChange
callback is called even though the selected value has not changed.Version
0.82.3
Testcase
https://codesandbox.io/s/5z379wy7ol
The text was updated successfully, but these errors were encountered: