Fix dropdown not closing when clicking away
This commit is contained in:
@@ -3,7 +3,10 @@
|
|||||||
])
|
])
|
||||||
|
|
||||||
<li class="z-10">
|
<li class="z-10">
|
||||||
<details>
|
<details
|
||||||
|
x-data
|
||||||
|
x-ref="dropdown"
|
||||||
|
@click.outside="$refs.dropdown.open = false">
|
||||||
<summary>{{ $title }}</summary>
|
<summary>{{ $title }}</summary>
|
||||||
<ul class="p-2 bg-primary">
|
<ul class="p-2 bg-primary">
|
||||||
{{ $slot }}
|
{{ $slot }}
|
||||||
|
|||||||
Reference in New Issue
Block a user