fix(Modal/Slideover/Toast): prevent unnecessary close instantiation

This commit is contained in:
Benjamin Canac
2025-03-20 12:14:21 +01:00
parent 9046b9d679
commit f4c417d9ef
3 changed files with 3 additions and 3 deletions

View File

@@ -168,7 +168,7 @@ defineExpose({
</slot>
</template>
<ToastClose as-child>
<ToastClose v-if="close || !!slots.close" as-child>
<slot name="close" :ui="ui">
<UButton
v-if="close"