Skip to content

Commit d79f845

Browse files
committed
fix: unblock save button whenever custom edit component updates inValidity to true
https://web.tracklify.com/project/2b7ZVgE5/AdminForth/1511/bXn02Pbi/somethin-broke-invalidity-reac
1 parent 639b264 commit d79f845

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

adminforth/spa/src/components/ResourceForm.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,13 @@ async function validateUsingUserValidationFunction(editableColumnsInner: AdminFo
490490
}
491491
}
492492
493+
watch(customComponentsInValidity, () => {
494+
editableColumns.value?.forEach(column => {
495+
checkIfColumnHasError(column);
496+
});
497+
isValid.value = checkIfAnyColumnHasErrors();
498+
});
499+
493500
defineExpose({
494501
columnError,
495502
editableColumns,

0 commit comments

Comments
 (0)