Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] in endMonth #2299

Closed
AhmedBaset opened this issue Jul 23, 2024 · 0 comments · Fixed by #2301
Closed

[bug] in endMonth #2299

AhmedBaset opened this issue Jul 23, 2024 · 0 comments · Fixed by #2301
Assignees

Comments

@AhmedBaset
Copy link

When navigating to the endDate, something goes wrong. Actually, I don't use this prop in my code but I faced it on the documentation and though It worth a look

image

https://daypicker.dev/docs/navigation#start-and-end-dates

Since the endMonth is 11 (December 2025), It should display it correctly.

import { DayPicker } from "react-day-picker";

export function Start() {
  return (
    <DayPicker startMonth={new Date(2024, 0)} endMonth={new Date(2025, 11)} />
  );
}

Expected Behavior

Render the last month correctly

Actual Behavior

It doesn't

@gpbl gpbl self-assigned this Jul 23, 2024
@gpbl gpbl linked a pull request Jul 23, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants