add 'textarea' to focusAccessibility.ELEMENTS

This commit is contained in:
tophf 2017-12-17 21:52:08 +03:00
parent 5aba0377a0
commit 4a924d6aa8

View File

@ -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});