refactor
parent
a5f37d0735
commit
cbaa9f4ce7
|
@ -2244,7 +2244,7 @@ export default {
|
||||||
let focusedIndex = focusableElements.indexOf(document.activeElement);
|
let focusedIndex = focusableElements.indexOf(document.activeElement);
|
||||||
|
|
||||||
if (event.shiftKey) {
|
if (event.shiftKey) {
|
||||||
if (focusedIndex == -1 || focusedIndex === 0)
|
if (focusedIndex === -1 || focusedIndex === 0)
|
||||||
focusableElements[focusableElements.length - 1].focus();
|
focusableElements[focusableElements.length - 1].focus();
|
||||||
else
|
else
|
||||||
focusableElements[focusedIndex - 1].focus();
|
focusableElements[focusedIndex - 1].focus();
|
||||||
|
|
Loading…
Reference in New Issue