fix: fix kaios left-right navigation on inputs (#1606)

This commit is contained in:
Nolan Lawson 2019-10-27 11:12:02 -07:00 committed by GitHub
parent cf2a6022dd
commit e569c757d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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