From 4a924d6aa80bcf7c0121cb7418e99bda49552217 Mon Sep 17 00:00:00 2001 From: tophf Date: Sun, 17 Dec 2017 21:52:08 +0300 Subject: [PATCH] add 'textarea' to focusAccessibility.ELEMENTS --- js/dom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/dom.js b/js/dom.js index ee8cc022..73933db9 100644 --- a/js/dom.js +++ b/js/dom.js @@ -322,7 +322,7 @@ function focusAccessibility() { // Since we don't want full layout recalc, we modify only the closest focusable element, // which we try to find in DOM for this many parentElement jumps: const focusables = focusAccessibility.ELEMENTS = - ['a', 'button', 'input', 'label', 'select', 'summary']; + ['a', 'button', 'input', 'textarea', 'label', 'select', 'summary']; const GIVE_UP_DEPTH = 4; addEventListener('mousedown', suppressOutlineOnClick, {passive: true}); addEventListener('keydown', keepOutlineOnTab, {passive: true});