Skip to content

Commit d766af6

Browse files
richardbannRichard BannLFDanLureidbarber
authored
fix focusVisible & calendar issue #3975 (#5785)
Co-authored-by: Richard Bann <[email protected]> Co-authored-by: Daniel Lu <[email protected]> Co-authored-by: Reid Barber <[email protected]>
1 parent 7c1da9f commit d766af6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/react-aria-components/src/Calendar.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,7 @@ function CalendarCell({date, ...otherProps}: CalendarCellProps, ref: ForwardedRe
478478

479479
let {hoverProps, isHovered} = useHover({...otherProps, isDisabled: states.isDisabled});
480480
let {focusProps, isFocusVisible} = useFocusRing();
481+
isFocusVisible &&= states.isFocused;
481482
let isOutsideMonth = !isSameMonth(currentMonth, date);
482483
let isSelectionStart = false;
483484
let isSelectionEnd = false;

0 commit comments

Comments
 (0)