-
Notifications
You must be signed in to change notification settings - Fork 103
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
Fixing using controller's value as initial value #218
Conversation
This reverts commit c2daad1.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you change the format back on the line that changed ? I think you have a bigger line length than 80.
If possible add a test too so this does not break in the future
Done. |
Perfect thank you. Released in v9.0.5 |
If you initialize the field with an empty controller and you update its value too soon, you end up having a filled field that failed required validation.
This fix uses
controller.value
(if any) during initialization pretty much likeTextFormField
does.