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,
default: null
},
name: {
type: String,
default: null
},
ariaLabelledby: {
type: String,
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.
*/
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.
*/

View File

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