From 62d199759d86d23aa1a79ee2a9738a870790c414 Mon Sep 17 00:00:00 2001 From: alex-one-v Date: Mon, 15 Jul 2024 16:57:19 +0400 Subject: [PATCH] - added keyboard navigation for select elements. --- src/js/core/keyboard-navigation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/core/keyboard-navigation.js b/src/js/core/keyboard-navigation.js index 4c7ae06..c283f04 100644 --- a/src/js/core/keyboard-navigation.js +++ b/src/js/core/keyboard-navigation.js @@ -54,7 +54,7 @@ export default function keyboardNavigation(instance) { if (!focusedButton) { const activeElement = document.activeElement && document.activeElement.nodeName ? document.activeElement.nodeName.toLocaleLowerCase() : false; - if (activeElement == 'input' || activeElement == 'textarea' || activeElement == 'button') { + if (activeElement == 'input' || activeElement == 'textarea' || activeElement == 'button' || activeElement == 'select') { return; } }