Skip to content
Permalink
Browse files

fix(MdTextarea): prevent emitting `inputEvent` object on `input` (#1249)

fix #1247
  • Loading branch information...
VdustR authored and marcosmoura committed Dec 3, 2017
1 parent 1c02752 commit c83f2a6ee12cd61fcac84a7653b9b6643ee5333c
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/components/MdField/MdTextarea/MdTextarea.vue
@@ -4,7 +4,7 @@
:style="textareaStyles"
v-model="model"
v-bind="attributes"
v-on="$listeners"
v-on="listeners"
@focus="onFocus"
@blur="onBlur">
</textarea>
@@ -47,6 +47,12 @@
mdAutogrow: Boolean
},
computed: {
listeners () {
return {
...this.$listeners,
input: event => this.$emit('input', event.target.value)
}
},
textareaStyles () {
return {
height: this.textareaHeight

0 comments on commit c83f2a6

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