Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion resources/views/dropdown.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
'withPlacement' => false,
'withoutButton' => false,
'placementFallbacks' => null,
'contentClass' => 'py-1',
])

<div
Expand Down Expand Up @@ -96,7 +97,13 @@ class="flex items-center focus:outline-none dropdown-button transition-default {
@if ($height) data-height="{{ $height }}" @endif
>
<div class="{{ $dropdownContentClasses }}" x-cloak>
<div class="py-1" @if($closeOnClick ?? true) @click="{{ $dropdownProperty }} = !{{ $dropdownProperty }}" @endif>
<div
@class($contentClass)

@if($closeOnClick ?? true)
@click="{{ $dropdownProperty }} = !{{ $dropdownProperty }}"
@endif
>
{{ $slot }}
</div>
</div>
Expand Down