How to prevent focus on press for CalendarCell? #4887
-
Hi, I'm working on a Calendar component for my library, and I noticed that the calendar cell is always focused when they're clicked on using a mouse. I'd like to remove this behavior. I've tried:
2023-08-09.21.10.18.movIf anyone can help me with this, I'd be very much appreciated. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Mind expanding on your use case here? If you remove focus on click, where would focus go instead? |
Beta Was this translation helpful? Give feedback.
-
I found out that I could use |
Beta Was this translation helpful? Give feedback.
I found out that I could use
useFocusVisible
to hide the outline when the CalendarCell is focused by a keyboard. Thank you everyone for your help!.