remove select unnecessary input emits

pull/2/head
Leopoldthecoder 2016-08-17 14:08:54 +08:00
parent 609901ae7a
commit cc0ca6851b
1 changed files with 1 additions and 2 deletions

View File

@ -190,8 +190,6 @@
}, },
value(val) { value(val) {
this.$emit('input', val);
this.$emit('change', val);
if (this.valueChangeBySelected) { if (this.valueChangeBySelected) {
this.valueChangeBySelected = false; this.valueChangeBySelected = false;
return; return;
@ -486,6 +484,7 @@
this.selected = {}; this.selected = {};
this.selectedLabel = ''; this.selectedLabel = '';
this.$emit('input', ''); this.$emit('input', '');
this.$emit('change', '');
this.visible = false; this.visible = false;
}, },