Browse Source

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

pull/5977/head
ming4762 1 year ago
committed by GitHub
parent
commit
3318d76bab
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      packages/@core/ui-kit/popup-ui/src/modal/modal.vue

2
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() {

Loading…
Cancel
Save