Skip to content
Permalink
Browse files

fix(MdSelect): emit `md-selected` event after `localValue` changed (#…

  • Loading branch information...
VdustR authored and marcosmoura committed Dec 19, 2017
1 parent 40406af commit 023723ad760e8918880156a3f5be9e8c569ff017
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/components/MdField/MdSelect/MdSelect.vue
@@ -113,8 +113,9 @@
watch: {
localValue: {
immediate: true,
handler () {
handler (val) {
this.setFieldContent()
this.emitSelected(val)
}
},
multiple: {
@@ -207,11 +208,9 @@
} else {
this.localValue = this.arrayAccessorRemove(this.localValue, index)
}
this.emitSelected(this.localValue)
},
setValue (newValue) {
this.model = newValue
this.emitSelected(newValue)
this.setFieldValue()
this.showSelect = false
},

0 comments on commit 023723a

Please sign in to comment.
You can’t perform that action at this time.