Skip to content

Missing <td /> for certain weeks <tr /> #2841

@Mr-Vipi

Description

@Mr-Vipi

Thanks for reporting a bug for DayPicker. Please provide here a brief description of the issue you’ve encountered.

To reproduce

CodeSandbox:

https://codesandbox.io/p/sandbox/daypicker-bug-report-forked-sshs5h?file=%2Fsrc%2FApp.tsx%3A7%2C77

Actual Behavior

Im using shadcn that is built on top of the react-day-picker
I have a calendar till January 2026.
What happens is that the days of the last week are not aligned as it should below the screens (third picture).
I think it happens since is missing a because the other weeks have all 7 the last week is having only 6 (the first & second picture).

Expected Behavior

the expected behavior is to have the calendar aligned properly as the other months.

Screenshots

Image Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions