Skip to content
Snippets Groups Projects
Commit b55d545e authored by Timothee P's avatar Timothee P :sunflower:
Browse files

fix dropdown checking filteredOptions instead of index

parent e4954518
No related branches found
No related tags found
No related merge requests found
......@@ -112,7 +112,7 @@ export default {
setTimeout(() => {
this.isOpen = false;
}, 0);
if (index) this.$emit("update:selection", this.filteredOptions[index]);
if (this.filteredOptions) this.$emit("update:selection", this.filteredOptions[index]);
this.input = "";
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment