mirror of
https://github.com/filamentphp/filament.git
synced 2026-08-28 18:53:05 +08:00
fix: user menu drop down cannot be expanded with the keyboard (#18487)
* fix: user menu drop down cannot be expanded with the keyboard * fix: use keyboard event listeners to toggle user menu * Update index.blade.php Signed-off-by: Dan Harrin <git@danharrin.com> --------- Signed-off-by: Dan Harrin <git@danharrin.com> Co-authored-by: Dan Harrin <git@danharrin.com>
This commit is contained in:
@@ -32,6 +32,8 @@
|
||||
{{ $attributes->class(['fi-dropdown']) }}
|
||||
>
|
||||
<div
|
||||
x-on:keyup.enter="toggle($event)"
|
||||
x-on:keyup.space="toggle($event)"
|
||||
x-on:mousedown="if ($event.button === 0) toggle($event)"
|
||||
{{ $trigger->attributes->class(['fi-dropdown-trigger']) }}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user