fix: focus on wrong element
parent
6065a4e2b5
commit
8aeccb6ad5
|
@ -2549,7 +2549,10 @@ export default {
|
|||
let spanIndex = null;
|
||||
|
||||
for (let i = 0; i < focusableElements.length; i++) {
|
||||
if (focusableElements[i].tagName === 'SPAN') spanIndex = i;
|
||||
if (focusableElements[i].tagName === 'SPAN') {
|
||||
spanIndex = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
focusableElements[spanIndex].focus();
|
||||
|
|
Loading…
Reference in New Issue