Fixed #1342 - Filtering non existing item in dropdown [filter=true, group=true] and pressing key down generates error

pull/1340/head^2
Yiğit FINDIKLI 2021-06-11 16:41:00 +03:00
parent 3c43849112
commit 2a2c97703c
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}