From 2c65a8d18ff80a4fa2721e767258773221986dac Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Tue, 11 Jun 2024 13:45:39 +0300 Subject: [PATCH] Fixed #5711 - Calendar: name should be passed to the input if provided --- components/lib/calendar/BaseCalendar.vue | 4 ++++ components/lib/calendar/Calendar.d.ts | 4 ++++ components/lib/calendar/Calendar.vue | 1 + 3 files changed, 9 insertions(+) diff --git a/components/lib/calendar/BaseCalendar.vue b/components/lib/calendar/BaseCalendar.vue index 6b0e7940f..11235aa41 100644 --- a/components/lib/calendar/BaseCalendar.vue +++ b/components/lib/calendar/BaseCalendar.vue @@ -228,6 +228,10 @@ export default { type: null, default: null }, + name: { + type: String, + default: null + }, ariaLabelledby: { type: String, default: null diff --git a/components/lib/calendar/Calendar.d.ts b/components/lib/calendar/Calendar.d.ts index 85c7f02bb..78d5eb340 100755 --- a/components/lib/calendar/Calendar.d.ts +++ b/components/lib/calendar/Calendar.d.ts @@ -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. */ diff --git a/components/lib/calendar/Calendar.vue b/components/lib/calendar/Calendar.vue index 6e62ea665..9f2104153 100755 --- a/components/lib/calendar/Calendar.vue +++ b/components/lib/calendar/Calendar.vue @@ -4,6 +4,7 @@ v-if="!inline" :ref="inputRef" :id="inputId" + :name="name" type="text" role="combobox" :class="[cx('input'), inputClass]"