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

🐛 Cannot set multi-year range #18

Closed
gabrielstellini opened this issue Mar 16, 2024 · 2 comments · Fixed by #19
Closed

🐛 Cannot set multi-year range #18

gabrielstellini opened this issue Mar 16, 2024 · 2 comments · Fixed by #19
Labels
Type: Bug Something isn't working

Comments

@gabrielstellini
Copy link

Describe the bug
Hi!
I am trying to set a maximum allowed date in the range picker (a week into the future).
There doesn't seem to be a min/max prop I could use, but I found enabledDates . This doesn't seem to allow multi-year ranges - is this a bug?
The disabledDates also seemed like a good option, but I couldn't find a way to only set the start date (and let it go on forever).

Is there another way to achieve this?

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://stackblitz.com/edit/vitejs-vite-mfpcpk?file=src%2FApp.svelte
  2. View the example dates

Expected behavior

  • Have a maximum/minimum date as prop or
  • Allow multi-year enabled dates

Screenshots

image

Desktop (please complete the following information):

  • OS: Linux
  • Browser Chrome
  • Version "^1.0.6"

Additional context
Add any other context about the problem here.

@gabrielstellini gabrielstellini added the Type: Bug Something isn't working label Mar 16, 2024
@gabrielstellini gabrielstellini changed the title 🐛 Cannot set mult-year range 🐛 Cannot set multi-year range Mar 16, 2024
@dysfunc
Copy link
Contributor

dysfunc commented Mar 16, 2024

I updated your stackblitz https://stackblitz.com/edit/vitejs-vite-qwdtrc?file=src%2FApp.svelte

@gabrielstellini
Copy link
Author

gabrielstellini commented Mar 16, 2024

Thank you for fixing it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants