Skip to content

Commit e343852

Browse files
committed
fix: call close function on cancel instead of directly setting isModalOpen in adminforth modal
AdminForth/1742/"unsaved-changes"-message-is-b
1 parent 17be1d8 commit e343852

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

adminforth/spa/src/afcl/Modal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ async function cancel() {
116116
const shouldCancel = await props.beforeCancelFunction?.();
117117
if (shouldCancel === false) return;
118118
}
119-
isModalOpen.value = false;
119+
close();
120120
}
121121
122122
defineOptions({

0 commit comments

Comments
 (0)