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 40d5408 commit bf1a108Copy full SHA for bf1a108
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
}
@@ -1154,4 +1151,4 @@
1154
1151
enableKeyboardNavigate();
1155
1152
enhanceUpload();
1156
1153
enableNonRefreshDelete();
1157
-})();
+}());
0 commit comments