Commit 01e315c9 authored by Leopoldthecoder's avatar Leopoldthecoder

fix select reset bug

parent d26e237f
......@@ -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