diff --git a/resources/views/popover-column.blade.php b/resources/views/popover-column.blade.php index b53ff4b..5583c7f 100644 --- a/resources/views/popover-column.blade.php +++ b/resources/views/popover-column.blade.php @@ -15,9 +15,7 @@ x-data="{ open: false }" @if($getTrigger === 'hover') - @pointerleave="clearTimeout($time); open = false" - @else - @click.away="open = false" + @pointerleave="$refs.panel.close" @endif class="fi-popover fi-ta-text grid w-full gap-y-1 px-3 py-4" @@ -38,9 +36,9 @@ class="fi-popover fi-ta-text grid w-full gap-y-1 px-3 py-4" class="relative w-full fi-popover-trigger cursor-pointer flex items-center gap-2" x-ref="button" @if($getTrigger === 'hover') - @pointerenter="$time = setTimeout(() => { open = true }, 200)" + @pointerenter="$refs.panel.open" @else - @click="open = ! open" + @click="$refs.panel.toggle" @endif > {{ $getState }} @@ -53,10 +51,12 @@ class="h-5 w-5 text-gray-500 dark:text-gray-400" @endif -
{{ $getContent }}