add 'textarea' to focusAccessibility.ELEMENTS
This commit is contained in:
parent
5aba0377a0
commit
4a924d6aa8
|
@ -322,7 +322,7 @@ function focusAccessibility() {
|
||||||
// Since we don't want full layout recalc, we modify only the closest focusable element,
|
// 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:
|
// which we try to find in DOM for this many parentElement jumps:
|
||||||
const focusables = focusAccessibility.ELEMENTS =
|
const focusables = focusAccessibility.ELEMENTS =
|
||||||
['a', 'button', 'input', 'label', 'select', 'summary'];
|
['a', 'button', 'input', 'textarea', 'label', 'select', 'summary'];
|
||||||
const GIVE_UP_DEPTH = 4;
|
const GIVE_UP_DEPTH = 4;
|
||||||
addEventListener('mousedown', suppressOutlineOnClick, {passive: true});
|
addEventListener('mousedown', suppressOutlineOnClick, {passive: true});
|
||||||
addEventListener('keydown', keepOutlineOnTab, {passive: true});
|
addEventListener('keydown', keepOutlineOnTab, {passive: true});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user