svelte-plugins / datepicker

A simple datepicker component designed for Svelte.
https://svelte-plugins.github.io/datepicker
MIT License
54 stars 12 forks source link

🐛 Cannot set multi-year range #18

Closed gabrielstellini closed 7 months ago

gabrielstellini commented 7 months ago

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

Screenshots

image

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

dysfunc commented 7 months ago

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

gabrielstellini commented 7 months ago

Thank you for fixing it!