Skip to content

Commit

Permalink
fix(MdSelect): pass props id and name as pure html attributes (#1583)
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuell1 authored and marcosmoura committed Mar 7, 2018
1 parent 89dc15c commit 9fde310
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/MdField/MdSelect/MdSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
:required="required"
:placeholder="placeholder"
v-on="inputListeners"
v-bind="$attrs"
v-bind="attrs"
@focus.prevent="onFocus"
@blur.prevent="removeHighlight"
@click="openSelect"
Expand Down Expand Up @@ -104,6 +104,13 @@
return { MdSelect }
},
computed: {
attrs () {
return {
...this.$attrs,
name: this.name,
id: this.id
}
},
inputListeners () {
return {
...this.$listeners,
Expand Down

0 comments on commit 9fde310

Please sign in to comment.