Fixed #5711 - Calendar: name should be passed to the input if provided

pull/5872/head
tugcekucukoglu 2024-06-11 13:45:39 +03:00
parent cb8964ff3a
commit 2c65a8d18f
3 changed files with 9 additions and 0 deletions

View File

@ -228,6 +228,10 @@ export default {
type: null, type: null,
default: null default: null
}, },
name: {
type: String,
default: null
},
ariaLabelledby: { ariaLabelledby: {
type: String, type: String,
default: null default: null

View File

@ -772,6 +772,10 @@ export interface CalendarProps {
* Used to pass all properties of the HTMLDivElement to the overlay panel inside the component. * Used to pass all properties of the HTMLDivElement to the overlay panel inside the component.
*/ */
panelProps?: HTMLAttributes | undefined; panelProps?: HTMLAttributes | undefined;
/**
* Name of the element.
*/
name?: string | undefined;
/** /**
* Establishes relationships between the component and label(s) where its value should be one or more element IDs. * Establishes relationships between the component and label(s) where its value should be one or more element IDs.
*/ */

View File

@ -4,6 +4,7 @@
v-if="!inline" v-if="!inline"
:ref="inputRef" :ref="inputRef"
:id="inputId" :id="inputId"
:name="name"
type="text" type="text"
role="combobox" role="combobox"
:class="[cx('input'), inputClass]" :class="[cx('input'), inputClass]"