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.
2 parents 8a601c0 + 435ae6e commit 2a6b541Copy full SHA for 2a6b541
src/components/Select.vue
@@ -577,7 +577,14 @@
577
onChange: {
578
type: Function,
579
default: function (val) {
580
- this.$emit('input', val)
+ this.$emit('change', val);
581
+ }
582
+ },
583
+
584
+ onInput: {
585
+ type: Function,
586
+ default: function (val) {
587
+ this.$emit('input', val);
588
}
589
},
590
@@ -841,6 +848,7 @@
841
848
} else {
842
849
this.mutableValue = option
843
850
851
+ this.onInput(this.mutableValue);
844
852
845
853
846
854
this.onAfterSelect(option)
@@ -864,6 +872,7 @@
864
872
865
873
this.mutableValue = null
866
874
875
867
876
868
877
869
878
/**
@@ -872,6 +881,7 @@
881
*/
882
clearSelection() {
883
this.mutableValue = this.multiple ? [] : null
884
+ this.onInput(this.mutableValue)
885
886
887
0 commit comments