This commit is contained in:
梁灏 2021-09-07 17:22:46 +08:00
parent aaf8084198
commit 0824e6f0ad

View file

@ -690,6 +690,7 @@
}, },
navigateOptions(direction){ navigateOptions(direction){
const optionsLength = this.flatOptions.length - 1; const optionsLength = this.flatOptions.length - 1;
if (optionsLength < 0) return;
let index = this.focusIndex + direction; let index = this.focusIndex + direction;
if (index < 0) index = optionsLength; if (index < 0) index = optionsLength;