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:
Justin Obara
2025-11-13 17:04:38 -05:00
committed by GitHub
parent eeb7515766
commit b2d66a3359
@@ -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']) }}
>