From e569c757d138bbe2a66fdffe6d2f8f37a7eaaf17 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sun, 27 Oct 2019 11:12:02 -0700 Subject: [PATCH] fix: fix kaios left-right navigation on inputs (#1606) --- src/routes/_store/observers/leftRightFocusObservers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/_store/observers/leftRightFocusObservers.js b/src/routes/_store/observers/leftRightFocusObservers.js index 6bd8d485..5a8d9009 100644 --- a/src/routes/_store/observers/leftRightFocusObservers.js +++ b/src/routes/_store/observers/leftRightFocusObservers.js @@ -48,7 +48,7 @@ export function leftRightFocusObservers (store) { function shouldIgnoreEvent (activeElement, key) { const isTextarea = activeElement.tagName === 'TEXTAREA' const isTextInput = activeElement.tagName === 'INPUT' && - ['input', 'search'].includes(activeElement.getAttribute('type')) + ['text', 'search', 'number', 'email', 'url'].includes(activeElement.getAttribute('type').toLowerCase()) if (!isTextarea && !isTextInput) { return false