-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Textarea can be reset only be explicitly dispatching reset() when submitting form #588
Comments
Sounds like another unforeseen side effect of #370 (comment). 😦 |
Wow, I never noticed it but it seems like other inputs work the same way. I'm wondering whether it's an expected behavior. Feel free to close this issue if that is the case. I may be missing something here. |
It was a conscious decision taken in the previously linked issue, for all the reasons discussed there, to not re-initialize based on the |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Textarea doesn't reset after submitting form even with the known fix below:
Currently I am explicitly dispatching reset when resolving Promise in onSubmit callback. This works, but it's kinda ugly. There are no particular deviations in my code, it's pretty similar to what you can find in official examples.
The text was updated successfully, but these errors were encountered: