mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-19 06:21:46 +01:00
fix(Popover): ensure default slot exists
This commit is contained in:
@@ -56,7 +56,7 @@ const Component = computed(() => props.mode === 'hover' ? HoverCard : Popover)
|
||||
|
||||
<template>
|
||||
<Component.Root v-bind="rootProps">
|
||||
<Component.Trigger as-child>
|
||||
<Component.Trigger v-if="$slots.default" as-child>
|
||||
<slot />
|
||||
</Component.Trigger>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user