fix: remove resetForm from onSuccess to prevent validation flash in dialogs

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-10 14:03:02 +02:00
parent cae2242502
commit 9b7aa92e84
8 changed files with 0 additions and 8 deletions

View File

@@ -85,7 +85,6 @@ function onSubmit() {
redirectedToParent: result.redirectedToParent,
parentEventName: result.parentEventName,
})
resetForm()
},
onError: (err: any) => {
const data = err.response?.data

View File

@@ -154,7 +154,6 @@ function onSubmit() {
const callbacks = {
onSuccess: () => {
modelValue.value = false
if (!isEditing.value) resetForm()
},
onError: (err: any) => {
const data = err.response?.data

View File

@@ -123,7 +123,6 @@ function onSubmit() {
const callbacks = {
onSuccess: () => {
modelValue.value = false
if (!isEditing.value) resetForm()
},
onError: (err: any) => {
const data = err.response?.data

View File

@@ -84,7 +84,6 @@ function onSubmit() {
onSuccess: () => {
modelValue.value = false
emit('updated')
resetForm()
},
onError: (err: any) => {
const data = err.response?.data