From 2a2c97703c10dc9991f7a0d994ff8b98af0959c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yi=C4=9Fit=20FINDIKLI?= Date: Fri, 11 Jun 2021 16:41:00 +0300 Subject: [PATCH] Fixed #1342 - Filtering non existing item in dropdown [filter=true, group=true] and pressing key down generates error --- src/components/dropdown/Dropdown.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/dropdown/Dropdown.vue b/src/components/dropdown/Dropdown.vue index 1c7ffd40b..064038bb1 100755 --- a/src/components/dropdown/Dropdown.vue +++ b/src/components/dropdown/Dropdown.vue @@ -290,7 +290,7 @@ export default { this.show(); } else { - let nextOption = this.findNextOption(this.getSelectedOptionIndex()); + let nextOption = this.visibleOptions && this.visibleOptions.length > 0 ? this.findNextOption(this.getSelectedOptionIndex()) : null; if (nextOption) { this.updateModel(event, this.getOptionValue(nextOption)); }