Skip to content

Commit 946ea32

Browse files
VdustRSamuell1
authored andcommitted
fix(MdSelect): selected event before mounted
fix #1781
1 parent 0008b1c commit 946ea32

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/MdField/MdSelect/MdSelect.vue

+4-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,10 @@
124124
handler (val) {
125125
this.setFieldContent()
126126
this.MdSelect.modelValue = this.localValue
127-
this.emitSelected(val)
127+
128+
if (this.didMount) {
129+
this.emitSelected(val)
130+
}
128131
}
129132
},
130133
multiple: {

0 commit comments

Comments
 (0)