Skip to content

Commit

Permalink
fix(MdSelect): emit md-selected event after localValue changed (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
VdustR authored and marcosmoura committed Dec 19, 2017
1 parent 40406af commit 023723a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/MdField/MdSelect/MdSelect.vue
Expand Up @@ -113,8 +113,9 @@
watch: {
localValue: {
immediate: true,
handler () {
handler (val) {
this.setFieldContent()
this.emitSelected(val)
}
},
multiple: {
Expand Down Expand Up @@ -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
},
Expand Down

0 comments on commit 023723a

Please sign in to comment.