-
-
Notifications
You must be signed in to change notification settings - Fork 449
fix(react): form.reset not working inside of onSubmit #1494
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
base: main
Are you sure you want to change the base?
Conversation
View your CI Pipeline Execution ↗ for commit 4205b90.
☁️ Nx Cloud last updated this comment at |
I'm not sure if this is the proper fix, but this fixes the newly added test without introducing other test failures. Test is failing given
|
@bpinto thanks for taking a look into this, I was rather busy over the weekend, so it's super appreciated! hmm thats, interesting... I'll shoot crutch corn a message since he authored the code, but you are correct it dose pass the tests, though to play devils advocate we are lacking framework specific tests so it might be breaking something. 😊 Once again thanks for the investigation! [edit] So to me removing the update(ops) won't work as we need to update the opts passed to form if they change. It's really a question as to what is causing the re-render of the form. |
these lines changing Of course it breaks everything else, but perhaps this could help with resolving this. |
Relates to #1490, #1485 and potentially #1487.
This appears to stem from the react adapter as Angular, Vue and Core all seem to work as intended.
Reset will work correctly initially then on next pass wipe the previous state. Curiously this seems to only be the case in the onSubmit handler.