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

Next month button does not work if the date selection on previous month is greater than today's date #166

Open
nixonnix opened this issue May 10, 2023 · 1 comment

Comments

@nixonnix
Copy link

Usecase:
I am using svelte-calendar with a cap of end date as today.

import { InlineCalendar } from 'svelte-calendar';
<InlineCalendar end={new Date()} />

Output:
The next month button on calendar does not work if the date selection on previous month is greater than today's date.

Steps to replicate:

Step 1: Go to previous month.
Step 2: Select a date on previous month (say 11 April) with is greater than today's date number (10 May)
Step 3: Click on the next button.
Step 5: Calendar will not allow you to go to next month.
Step 6: Change the date to a lesser date than todays or same date number (say 10th April).
Step 7: Click on the next button. Calendar will allow you to got to next date.

Expected:
Calendar should allow to go to next date

Screen.Recording.2023-05-10.at.1.49.31.PM.mov
@hellquist413
Copy link

hellquist413 commented Jun 11, 2023

Same issue here with $store.start = today; using Datepicker but for the previous month. Only way I find to access the month is by clicking on the "grayed out" dates of the next/previous month and it will jump there.

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

No branches or pull requests

2 participants