We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 623df81 commit 435ae6eCopy full SHA for 435ae6e
src/components/Select.vue
@@ -566,7 +566,14 @@
566
onChange: {
567
type: Function,
568
default: function (val) {
569
- this.$emit('input', val)
+ this.$emit('change', val);
570
+ }
571
+ },
572
+
573
+ onInput: {
574
+ type: Function,
575
+ default: function (val) {
576
+ this.$emit('input', val);
577
}
578
},
579
@@ -830,6 +837,7 @@
830
837
} else {
831
838
this.mutableValue = option
832
839
840
+ this.onInput(this.mutableValue);
833
841
834
842
835
843
this.onAfterSelect(option)
@@ -853,6 +861,7 @@
853
861
854
862
this.mutableValue = null
855
863
864
856
865
857
866
858
867
/**
@@ -861,6 +870,7 @@
870
*/
871
clearSelection() {
872
this.mutableValue = this.multiple ? [] : null
873
+ this.onInput(this.mutableValue)
874
875
876
0 commit comments