6eDesign / svelte-calendar

A lightweight datepicker with neat animations and a unique UX.
https://6edesign.github.io/svelte-calendar/
MIT License
537 stars 89 forks source link

start not working when bound to a variable #139

Open nezlicodes opened 2 years ago

nezlicodes commented 2 years ago

I need two calendars for start and end dates. The second calendar should start and the value of start but it's not working.

Your help would be much appreciated.

6eDesign commented 2 years ago

Start and end are not currently reactive (and probably should be). In the meantime you do have access to the datepicker store and can achieve this type of functionality like so:

https://svelte.dev/repl/c02334eea8bf47698712bc7e399d487c?version=3.44.1