Commit 0ed08bd9 authored by qingwei.li's avatar qingwei.li

Merge branch 'next' of github.com:eleme/element-ui into next

parents 8a69ed9f 5abde26e
......@@ -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