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 3aed204 commit 4454c7cCopy full SHA for 4454c7c
src/tpl/defaultTheme/frontend/index.js
@@ -236,9 +236,6 @@
236
}
237
238
function getFocusableSibling(container, isBackward, startA) {
239
- if (!container) {
240
- return
241
- }
242
if (!startA) {
243
startA = container.querySelector(':focus');
244
@@ -281,11 +278,8 @@
281
278
282
279
283
280
284
- var selectorFirstAvailLi = 'li:not(.' + classNone + '):not(.' + classHeader + ')';
285
-
286
function getFirstFocusableSibling(container) {
287
- var li = container.querySelector(selectorFirstAvailLi);
288
- var a = li && li.querySelector('a');
+ var a = container.querySelector('li:not(.' + classNone + '):not(.' + classHeader + ') a');
289
return a;
290
291
0 commit comments