Skip to content

Commit 2a6b541

Browse files
author
Jeff
committed
Merge branch 'master' of https://github.com/TaylorDale/vue-select into TaylorDale-master
2 parents 8a601c0 + 435ae6e commit 2a6b541

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/components/Select.vue

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,14 @@
577577
onChange: {
578578
type: Function,
579579
default: function (val) {
580-
this.$emit('input', val)
580+
this.$emit('change', val);
581+
}
582+
},
583+
584+
onInput: {
585+
type: Function,
586+
default: function (val) {
587+
this.$emit('input', val);
581588
}
582589
},
583590
@@ -841,6 +848,7 @@
841848
} else {
842849
this.mutableValue = option
843850
}
851+
this.onInput(this.mutableValue);
844852
}
845853
846854
this.onAfterSelect(option)
@@ -864,6 +872,7 @@
864872
} else {
865873
this.mutableValue = null
866874
}
875+
this.onInput(this.mutableValue);
867876
},
868877
869878
/**
@@ -872,6 +881,7 @@
872881
*/
873882
clearSelection() {
874883
this.mutableValue = this.multiple ? [] : null
884+
this.onInput(this.mutableValue)
875885
},
876886
877887
/**

0 commit comments

Comments
 (0)