Skip to content

Commit 3318d76

Browse files
authored
perf: improve destroyOnClose for VbenModal (vbenjs#5964)
1 parent 8f3881e commit 3318d76

File tree

1 file changed

+1
-1
lines changed
  • packages/@core/ui-kit/popup-ui/src/modal

1 file changed

+1
-1
lines changed

packages/@core/ui-kit/popup-ui/src/modal/modal.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ const getAppendTo = computed(() => {
186186
});
187187
188188
const getForceMount = computed(() => {
189-
return !unref(destroyOnClose);
189+
return !unref(destroyOnClose) && unref(firstOpened);
190190
});
191191
192192
function handleClosed() {

0 commit comments

Comments
 (0)