We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f8e96a commit 6f2694cCopy full SHA for 6f2694c
src/tpl/defaultTheme/frontend/index.js
@@ -161,10 +161,7 @@
161
162
function keepFocusOnBackwardForward() {
163
function onFocus(e) {
164
- var link = e.target;
165
- while (link && !(link instanceof HTMLAnchorElement)) {
166
- link = link.parentElement;
167
- }
+ var link = e.target.closest('a');
168
if (!link || link === lastFocused) return;
169
lastFocused = link;
170
}
@@ -1164,4 +1161,4 @@
1164
1161
enableKeyboardNavigate();
1165
1162
enhanceUpload();
1166
1163
enableNonRefreshDelete();
1167
-})();
+}());
0 commit comments