Commit 275d092d authored by cinwell.li's avatar cinwell.li Committed by GitHub

Merge pull request #128 from Leopoldthecoder/next

fix select reset bug
parents 7e348367 01e315c9
......@@ -197,13 +197,12 @@
});
}
if (!this.multiple) {
if (val === '') {
this.selected = {};
this.selectedLabel = '';
}
let option = this.options.filter(option => option.value === val)[0];
if (option) {
this.$emit('addOptionToValue', option);
} else {
this.selected = {};
this.selectedLabel = '';
}
}
this.resetHoverIndex();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment