Skip to content
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

Can't reset the form #263

Closed
DJRahim opened this issue Apr 27, 2020 · 2 comments
Closed

Can't reset the form #263

DJRahim opened this issue Apr 27, 2020 · 2 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists
Milestone

Comments

@DJRahim
Copy link

DJRahim commented Apr 27, 2020

Hello, i have a FormBuilder() which contains :

  • FormBuilderChoiceChip()
  • 2 FormBuilderTextField()
  • and a Confirm and reset buttons

When i press the reset button, it reset only FormBuilderChoiceChip(), and when i removed it it works (resets the 2 FormBuilderTextFields).

I tried replacing FormBuilderChoiceChip() by a FormBuilderDropDown(), same thing.

flutter doctor :

[✓] Flutter (Channel stable, v1.12.13+hotfix.9, on Linux, locale en_US.UTF-8)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Android Studio (version 3.6)
[✓] VS Code (version 1.44.2)
[✓] Connected device (1 available)
.

@danvick danvick added bug Something isn't working duplicate This issue or pull request already exists labels May 1, 2020
@leidig54
Copy link

leidig54 commented May 13, 2020

Similar issues with reset(). It is either not working at all or working very intermittently. In my code only the DateTimePicker is consistently reset. But the other fields are ignored.

EDIT: Nope its back

@danvick
Copy link
Collaborator

danvick commented May 15, 2020

Hi all,
Thanks for your feedback.

We've always had issues to do with resetting FormBuilder. This is mainly due to:

  1. How Flutter handles Form reset and
  2. How this package was implemented.

I've made some progress in regard to this in the just-released v3.10.0.
I'm also working on v4.0.0 of the package which is a complete re-write, currently in alpha which aims to get rid of this issue among other structural ones.

Let's keep the feedback coming.

@danvick danvick added this to the v4.0.0 milestone Jul 18, 2020
@danvick danvick closed this as completed Nov 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants