Fixed #6737 - InputText: Name attribute not applied when used outside of Form component

pull/6188/merge
Mert Sincan 2025-01-13 10:13:56 +00:00
parent 295c7eb46e
commit 3e7739b1e7
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<template>
<input type="text" :class="cx('root')" :value="d_value" :disabled="disabled" :aria-invalid="$invalid || undefined" @input="onInput" v-bind="attrs" />
<input type="text" :class="cx('root')" :value="d_value" :name="name" :disabled="disabled" :aria-invalid="$invalid || undefined" @input="onInput" v-bind="attrs" />
</template>
<script>

View File

@ -1,5 +1,5 @@
<template>
<textarea :class="cx('root')" :value="d_value" :disabled="disabled" :aria-invalid="invalid || undefined" @input="onInput" v-bind="attrs"></textarea>
<textarea :class="cx('root')" :value="d_value" :name="name" :disabled="disabled" :aria-invalid="invalid || undefined" @input="onInput" v-bind="attrs"></textarea>
</template>
<script>