From 0824e6f0ad2c60193a728747cdaf3ab305078fa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E7=81=8F?= Date: Tue, 7 Sep 2021 17:22:46 +0800 Subject: [PATCH] fix #917 --- src/components/select/select.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/select/select.vue b/src/components/select/select.vue index 55a0ad94..a40ba72d 100644 --- a/src/components/select/select.vue +++ b/src/components/select/select.vue @@ -690,6 +690,7 @@ }, navigateOptions(direction){ const optionsLength = this.flatOptions.length - 1; + if (optionsLength < 0) return; let index = this.focusIndex + direction; if (index < 0) index = optionsLength;