Skip to content

Commit f2dce4f

Browse files
committed
Fix: Add missing attrs
1 parent b5e1af3 commit f2dce4f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/components/input/Input.vue

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
<input
2727
v-if="type !== 'textarea'"
2828
class="vue-input__inner"
29+
:name="name"
2930
:type="type"
3031
:value="value"
3132
:placeholder="placeholder"
@@ -39,7 +40,12 @@
3940
<textarea
4041
v-else
4142
class="vue-textarea__inner"
43+
:name="name"
44+
:type="type"
4245
:placeholder="placeholder"
46+
:disabled="disabled"
47+
:readonly="readonly"
48+
:value="value"
4349
:rows="rows">
4450
</textarea>
4551
<div
@@ -202,6 +208,10 @@ export default {
202208
height: auto;
203209
line-height: 1.5;
204210
resize: vertical;
211+
&[disabled] {
212+
cursor: no-drop;
213+
background-color: $color-grey-light;
214+
}
205215
}
206216
}
207217
</style>

0 commit comments

Comments
 (0)