Skip to content

Commit

Permalink
Fixed #1342 - Filtering non existing item in dropdown [filter=true, g…
Browse files Browse the repository at this point in the history
…roup=true] and pressing key down generates error
  • Loading branch information
yigitfindikli committed Jun 11, 2021
1 parent 3c43849 commit 2a2c977
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/dropdown/Dropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 2a2c977

Please sign in to comment.