[General]: using isValid
with multiple required form fields makes typing "jump" to latest invalid field
#1253
Labels
bug
Something isn't working
Is there an existing issue for this?
Package/Plugin version
9.0.0
Flutter doctor
Flutter doctor
Minimal code example
Code sample
Current Behavior
If I select the first text field (which is "Name") and I type one character the whole form shows being invalid and the focus jumps to the last field showing an error.
If you remove the validators from the last field, it will jump to the second one (which then is the last field showing an error) instead.
Instead of the
Text
I will have a button later than is either enabled/disabled depending on the state.In addition (I can make a second issue for that, if you want): Using
setState()
shows all other form fields as error as well, even if there was no user input.Expected Behavior
Steps To Reproduce
Run the example code and simply type something into the first text field.
Aditional information
I've used the idea of #1157 to check if the form is valid or not. I'm not sure if that is the correct approach because there is no documentation or example for
isValid
available.Video of the issue:
https://github.com/flutter-form-builder-ecosystem/flutter_form_builder/assets/740791/2342681e-a793-49dd-81ae-e3a7b4b5a33c
The text was updated successfully, but these errors were encountered: