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 426783b commit e81f924Copy full SHA for e81f924
src/tpl/defaultTheme/frontend/index.js
@@ -158,10 +158,7 @@
158
159
function keepFocusOnBackwardForward() {
160
function onFocus(e) {
161
- var link = e.target;
162
- while (link && !(link instanceof HTMLAnchorElement)) {
163
- link = link.parentElement;
164
- }
+ var link = e.target.closest('a');
165
if (!link || link === lastFocused) return;
166
lastFocused = link;
167
}
@@ -1118,4 +1115,4 @@
1118
1115
enableKeyboardNavigate();
1119
1116
enhanceUpload();
1120
1117
enableNonRefreshDelete();
1121
-})();
+}());
0 commit comments