Closed tyki6 closed 20 hours ago
I was facing the same issue. I solved it by fixing the css of the day picker table row (added justify-content-end css property). When we disable the showOutsideDays, the items are shifted towards left for the first row as there are less than seven <tr>
in the first row
table: 'w-full border-collapse space-y-1', head_row: 'flex', head_cell: 'text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]', row: 'flex justify-end w-full mt-2', cell: 'text-center text-sm p-0 relative [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20'
Please provide a code sandbox to replicate the issue, thanks!
Description
showOutsideDays is disabled 1st on month start always on Sunday
Expected Behavior
On february when showOutsideDays is disabled 1 february start on thursday and not on monday.
Actual Behavior
Steps to Reproduce
show two month, in February. code:
Possible Solution
If you have a suggestion on how to fix the issue, please include it here.
Your Environment
18.2.0
react-day-picker 8.10.0