-
-
Notifications
You must be signed in to change notification settings - Fork 540
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
FormBuilderDropdown onChanged fires twice during form Reset #1371
Labels
bug
Something isn't working
Comments
7 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there an existing issue for this?
Package/Plugin version
9.2.1
Platforms
Flutter doctor
Flutter doctor
Minimal code example
Code sample
Current Behavior
When resetting the form, the dropdowns "onChange" handler will fire twice in quick succession - one setting it to the "initialValue", then a second setting it back to the value it was before the reset button was clicked (essentially undoing the reset).
Expected Behavior
When resetting the form, the "onChange" should fire only once, and the passed value should be the "initialValue".
Steps To Reproduce
Using the above code snippet.
Note that it will not reset, but stay as "B", and the debug console will read
Aditional information
No response
The text was updated successfully, but these errors were encountered: