Skip to content
This repository has been archived by the owner on Nov 30, 2020. It is now read-only.

Commit

Permalink
fix(textfield): Pass events to inner elements (close #144)
Browse files Browse the repository at this point in the history
  • Loading branch information
matsp committed Aug 16, 2018
1 parent 4bc65c8 commit c5479ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/textfield/Textfield.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@
v-if="!textarea"
:value="value"
v-bind="$attrs"
v-on="$listeners"
class="mdc-text-field__input"
@input="$emit('model', $event.target.value)">
<textarea
v-if="textarea"
:value="value"
v-bind="$attrs"
v-on="$listeners"
class="mdc-text-field__input"
@input="$emit('model', $event.target.value)"/>
<slot v-if="$slots['default'] && !fullWidth"/>
Expand Down

0 comments on commit c5479ed

Please sign in to comment.