Prechádzať zdrojové kódy

perf: improve `destroyOnClose` for VbenModal (#5964)

ming4762 5 mesiacov pred
rodič
commit
3318d76bab

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

@@ -186,7 +186,7 @@ const getAppendTo = computed(() => {
 });
 
 const getForceMount = computed(() => {
-  return !unref(destroyOnClose);
+  return !unref(destroyOnClose) && unref(firstOpened);
 });
 
 function handleClosed() {