v8: hover effect on outsidedays #1382
Unanswered
jazz-messenger
asked this question in
Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In this v7 sample we see modifiers in action to highlight the whole week for a day that we hover on.
This works rather fine on v8, too. But there is one thing that I am currently not able to get working. In the sample, you may see that the outsidedays of a month get highlighted on v7 (just hover on month's first or last week). But this does not seem to work on v8.
Here is what I did:
I added
to the DatePicker component where
const getDateRange = (date: Date) => {
const ourselection: DateRange = {
from: startOfISOWeek(date),
to: subDays(lastDayOfISOWeek(date), 2),
};
return ourselection;
};
by the aid of datefns.
Beta Was this translation helpful? Give feedback.
All reactions