mirror of
https://github.com/filamentphp/filament.git
synced 2026-10-24 23:35:30 +08:00
Use mousedown with left-click check to improve dropdown responsiveness
Co-authored-by: danharrin <41773797+danharrin@users.noreply.github.com>
This commit is contained in:
co-authored by
danharrin
parent
dd6a772363
commit
20f3e61eaa
@@ -32,7 +32,7 @@
|
||||
{{ $attributes->class(['fi-dropdown']) }}
|
||||
>
|
||||
<div
|
||||
x-on:click="toggle"
|
||||
x-on:mousedown="if ($event.button === 0) toggle()"
|
||||
{{ $trigger->attributes->class(['fi-dropdown-trigger']) }}
|
||||
>
|
||||
{{ $trigger }}
|
||||
|
||||
Reference in New Issue
Block a user