mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
fix(Form): clear dirty state after submit (#3692)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user