-
Notifications
You must be signed in to change notification settings - Fork 37
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
Reset / clear selection #16
Comments
is there any update for that |
I'm facing the same issue. |
@bobppsureway : Can you send me a runnable example with your problem? |
List dropDownData1 = [ List dropDownData2 = [ List dropDownData= dropDownData1; generateDropDownData(bool switch) { Form( If you select Australia and Canada then call generateDropDownData(false); then the dropdown populates with dropDownData2 info. This is right but the previously selected items are not reset. If you don't select any item with the new dropdown, call _formkey.save(); Returned value will be [Australia,Canada]. If select India and United States with the new dropdown the outcome will be [Australia,Canada, India, United States]. |
If the dropdown populates with initialValue then setState on initialValue=null. |
I'm having an issue where I get an error if the current datasource changes and the previously selected items don't match the new datasource. This behaviour mirrors the standard dropdownbutton behaviour which is fine, however, dropdown button offers access to the selected item so it can be set to null. It would be great if this feature could be implemented or some way to clear or reset the selected items.
The text was updated successfully, but these errors were encountered: