From 4a877ad27b6f3314e0a8f96bdfa2faaf27169771 Mon Sep 17 00:00:00 2001 From: tophf Date: Thu, 6 Sep 2018 20:42:48 +0300 Subject: [PATCH] fixup c57fef7b: always set lastFocusedViaClick #495 --- js/dom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/dom.js b/js/dom.js index a19b637a..825d1e78 100644 --- a/js/dom.js +++ b/js/dom.js @@ -337,9 +337,9 @@ function focusAccessibility() { function suppressOutlineOnClick({target}) { for (let el = target, i = 0; el && i++ < GIVE_UP_DEPTH; el = el.parentElement) { if (focusAccessibility.ELEMENTS.includes(el.localName)) { + focusAccessibility.lastFocusedViaClick = true; if (el.dataset.focusedViaClick === undefined) { el.dataset.focusedViaClick = ''; - focusAccessibility.lastFocusedViaClick = true; } return; }