Skip to content

Commit

Permalink
fix(date-picker): corrected inert value for true condition #3044
Browse files Browse the repository at this point in the history
  • Loading branch information
shrinidhi.upadhyaya committed May 23, 2024
1 parent 8c5ae9f commit 6f645a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/components/calendar/src/calendar-month.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion packages/components/calendar/src/calendar-picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 : ""}
>
<div
ref={highlightRef}
Expand Down

0 comments on commit 6f645a3

Please sign in to comment.