From 6f645a3b49c76331fe92ddc8d0f278432d9b7113 Mon Sep 17 00:00:00 2001 From: "shrinidhi.upadhyaya" Date: Thu, 23 May 2024 02:54:16 +0200 Subject: [PATCH] fix(date-picker): corrected inert value for true condition #3044 --- packages/components/calendar/src/calendar-month.tsx | 2 +- packages/components/calendar/src/calendar-picker.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/components/calendar/src/calendar-month.tsx b/packages/components/calendar/src/calendar-month.tsx index 78cdd30252..2fe18d8b12 100644 --- a/packages/components/calendar/src/calendar-month.tsx +++ b/packages/components/calendar/src/calendar-month.tsx @@ -41,7 +41,7 @@ export function CalendarMonth(props: CalendarMonthProps) { data-slot="grid-body-row" // makes the browser ignore the element and its children when tabbing // @ts-ignore - inert={isHeaderExpanded ? true : undefined} + inert={isHeaderExpanded ? "" : undefined} > {state .getDatesInWeek(weekIndex, startDate) diff --git a/packages/components/calendar/src/calendar-picker.tsx b/packages/components/calendar/src/calendar-picker.tsx index 575b665f77..ab1bd5f15c 100644 --- a/packages/components/calendar/src/calendar-picker.tsx +++ b/packages/components/calendar/src/calendar-picker.tsx @@ -67,7 +67,7 @@ export function CalendarPicker(props: CalendarPickerProps) { data-slot="picker-wrapper" // makes the browser ignore the element and its children when tabbing // @ts-ignore - inert={isHeaderExpanded ? true : undefined} + inert={isHeaderExpanded ? undefined : ""} >