Skip to content

Commit

Permalink
fix(MdTextarea): prevent emitting inputEvent object on input (#1249)
Browse files Browse the repository at this point in the history
fix #1247
  • Loading branch information
VdustR authored and marcosmoura committed Dec 3, 2017
1 parent 1c02752 commit c83f2a6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/MdField/MdTextarea/MdTextarea.vue
Expand Up @@ -4,7 +4,7 @@
:style="textareaStyles"
v-model="model"
v-bind="attributes"
v-on="$listeners"
v-on="listeners"
@focus="onFocus"
@blur="onBlur">
</textarea>
Expand Down Expand Up @@ -47,6 +47,12 @@
mdAutogrow: Boolean
},
computed: {
listeners () {
return {
...this.$listeners,
input: event => this.$emit('input', event.target.value)
}
},
textareaStyles () {
return {
height: this.textareaHeight
Expand Down

0 comments on commit c83f2a6

Please sign in to comment.