Skip to content

Commit 9bd5905

Browse files
committed
perf: improve destroyOnClose for VbenModal
1 parent d18f561 commit 9bd5905

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

Lines changed: 1 addition & 1 deletion
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)