parent
26d7c26770
commit
4a877ad27b
|
@ -337,9 +337,9 @@ function focusAccessibility() {
|
||||||
function suppressOutlineOnClick({target}) {
|
function suppressOutlineOnClick({target}) {
|
||||||
for (let el = target, i = 0; el && i++ < GIVE_UP_DEPTH; el = el.parentElement) {
|
for (let el = target, i = 0; el && i++ < GIVE_UP_DEPTH; el = el.parentElement) {
|
||||||
if (focusAccessibility.ELEMENTS.includes(el.localName)) {
|
if (focusAccessibility.ELEMENTS.includes(el.localName)) {
|
||||||
|
focusAccessibility.lastFocusedViaClick = true;
|
||||||
if (el.dataset.focusedViaClick === undefined) {
|
if (el.dataset.focusedViaClick === undefined) {
|
||||||
el.dataset.focusedViaClick = '';
|
el.dataset.focusedViaClick = '';
|
||||||
focusAccessibility.lastFocusedViaClick = true;
|
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user