Skip to content

Commit 9fde310

Browse files
Samuell1marcosmoura
authored andcommitted
fix(MdSelect): pass props id and name as pure html attributes (#1583)
1 parent 89dc15c commit 9fde310

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/components/MdField/MdSelect/MdSelect.vue

+8-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
:required="required"
1818
:placeholder="placeholder"
1919
v-on="inputListeners"
20-
v-bind="$attrs"
20+
v-bind="attrs"
2121
@focus.prevent="onFocus"
2222
@blur.prevent="removeHighlight"
2323
@click="openSelect"
@@ -104,6 +104,13 @@
104104
return { MdSelect }
105105
},
106106
computed: {
107+
attrs () {
108+
return {
109+
...this.$attrs,
110+
name: this.name,
111+
id: this.id
112+
}
113+
},
107114
inputListeners () {
108115
return {
109116
...this.$listeners,

0 commit comments

Comments
 (0)