Skip to content

Allow to reset the form after successful submit and sync the defaults afterwards #2412

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thoresuenert
Copy link

@thoresuenert thoresuenert commented Jun 27, 2025

Provide a Fix to #2411.

After digging into issues and code i found the following comment from Jess Archer which describe the steps to reproduce, but for the vue form.
Which leads me to the form helper of vue and i found different behavior vue vs react.

The critical setDefaults(data) in onSuccess was introduce by #2236 to fix an issue with reactivity of the isDirty prop.

Solution:

To bring vue and react in sync an solve this bug, we have to move the setDefaults after running the onSuccess hook, which bring the reset data and the defaults in sync.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant