-
-
Notifications
You must be signed in to change notification settings - Fork 542
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]: Not reverting to initial value upon form reset #1402
Comments
Could be related to this issue - #1389 |
I think this is just a bug. When reset() is called, onChange gets called twice for FormBuilderDropdown widgets: first with the correct (original) value, then with the incorrect (current value). Net result: the value doesn't get reset to the original value. (flutter_form_builder: ^9.4.1) |
... which is the same issue mentioned here: #1371 |
I test this and using reset by field, |
While I writing the previous comment, I notice that I used DropdownButtonFormField instead DropdownButton. |
Is there an existing issue for this?
Package/Plugin version
9.3.0
Platforms
Flutter doctor
Flutter doctor
Minimal code example
Code sample
Current Behavior
The dropdown field is not reverting to the initial value upon form reset. It instead retains the value that has been selected prior to reset.
Expected Behavior
Dropdown field should be reset to initial value when the form is reset
Steps To Reproduce
Aditional information
The text was updated successfully, but these errors were encountered: