Add maxlength attribute to name and email fields

This commit is contained in:
Bubka
2022-09-18 16:27:42 +02:00
parent 74f4765d5b
commit eef020faae
3 changed files with 10 additions and 4 deletions

View File

@ -11,6 +11,7 @@
:placeholder="placeholder"
v-bind="$attrs"
v-on:change="$emit('field-changed', form[fieldName])"
:maxlength="this.maxLength"
/>
</div>
<field-error :form="form" :field="fieldName" />
@ -69,6 +70,11 @@
isDisabled: {
type: Boolean,
default: false
},
maxLength: {
type: Number,
default: null
}
}
}