Skip to content

Commit 023723a

Browse files
VdustRmarcosmoura
authored andcommitted
fix(MdSelect): emit md-selected event after localValue changed (#1282)
fix #1275
1 parent 40406af commit 023723a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/components/MdField/MdSelect/MdSelect.vue

+2-3
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,9 @@
113113
watch: {
114114
localValue: {
115115
immediate: true,
116-
handler () {
116+
handler (val) {
117117
this.setFieldContent()
118+
this.emitSelected(val)
118119
}
119120
},
120121
multiple: {
@@ -207,11 +208,9 @@
207208
} else {
208209
this.localValue = this.arrayAccessorRemove(this.localValue, index)
209210
}
210-
this.emitSelected(this.localValue)
211211
},
212212
setValue (newValue) {
213213
this.model = newValue
214-
this.emitSelected(newValue)
215214
this.setFieldValue()
216215
this.showSelect = false
217216
},

0 commit comments

Comments
 (0)