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 0d35137 commit b72344eCopy full SHA for b72344e
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
}
@@ -1129,4 +1126,4 @@
1129
1126
enableKeyboardNavigate();
1130
1127
enhanceUpload();
1131
1128
enableNonRefreshDelete();
1132
-})();
+}());
0 commit comments