nicolium: make select keyboard-selectable in dropdown menu

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-02-21 15:16:33 +01:00
parent 9e342e0e9a
commit ed28f4a17c

View File

@ -75,7 +75,7 @@ const DropdownMenuContent: React.FC<IDropdownMenuContent> = ({
const elements = Array.from(
ref.current.querySelectorAll<HTMLElement>(
'a, button:not([disabled]), input:not([disabled])',
'a, button:not([disabled]), input:not([disabled]), select:not([disabled])',
),
).filter((element) => !element.hasAttribute('aria-hidden'));
const index = elements.indexOf(document.activeElement as any);