2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-19 09:50:33 +03:00

Merge branch 'master' of https://github.com/TaylorDale/vue-select into TaylorDale-master

This commit is contained in:
Jeff
2019-02-09 16:35:34 -08:00
+11 -1
View File
@@ -577,7 +577,14 @@
onChange: { onChange: {
type: Function, type: Function,
default: function (val) { default: function (val) {
this.$emit('input', val) this.$emit('change', val);
}
},
onInput: {
type: Function,
default: function (val) {
this.$emit('input', val);
} }
}, },
@@ -841,6 +848,7 @@
} else { } else {
this.mutableValue = option this.mutableValue = option
} }
this.onInput(this.mutableValue);
} }
this.onAfterSelect(option) this.onAfterSelect(option)
@@ -864,6 +872,7 @@
} else { } else {
this.mutableValue = null this.mutableValue = null
} }
this.onInput(this.mutableValue);
}, },
/** /**
@@ -872,6 +881,7 @@
*/ */
clearSelection() { clearSelection() {
this.mutableValue = this.multiple ? [] : null this.mutableValue = this.multiple ? [] : null
this.onInput(this.mutableValue)
}, },
/** /**