Keep selected dates in focus when clicking away #874
-
Currently, the dates get :focus styles applied only when in focus, but as soon as the user clicks away, the selected date loses focus and it's not clear which date was selected. Is there a way to persist the :focus styles on selected dates? Here's an example, click on the New button to have the calendar displayed https://stackblitz.com/edit/stackblitz-starters-gzpusc?file=src%2Fstyle.css |
Beta Was this translation helpful? Give feedback.
Answered by
samhirtarif
Jun 20, 2023
Replies: 1 comment 1 reply
-
Since you are maintaining the selected value in the Here's your stackblitz modified to cater to your requirement |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
xsrokhan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since you are maintaining the selected value in the
Calendar
component, you could usetileClassName
for that specific tile like this.Here's your stackblitz modified to cater to your requirement