fix(Form): clear dirty state after submit (#3692)

This commit is contained in:
Romain Hamel
2025-03-26 13:48:28 +01:00
committed by GitHub
parent d6d7971d44
commit 3dd88bacec

View File

@@ -217,6 +217,7 @@ async function onSubmitWrapper(payload: Event) {
try {
event.data = await _validate({ nested: true, transform: props.transform })
await props.onSubmit?.(event)
dirtyFields.clear()
} catch (error) {
if (!(error instanceof FormValidationException)) {
throw error