date-picker-svelte icon indicating copy to clipboard operation
date-picker-svelte copied to clipboard

Allow unrestricted date ranges without min/max

Open probablykasper opened this issue 2 years ago • 3 comments

min and max are non-nullable and have default values. Changing this would require a textbox for setting the year.

min defaults to The start of the year - 20 years and max defaults to The end of today: https://github.com/probablykasper/date-picker-svelte/blob/191284689f5f50e641193cf5dca57404b0d486bc/src/lib/DatePicker.svelte#L39-L42

probablykasper avatar Jan 06 '23 06:01 probablykasper

From @3nematix in #41:

Another bug is that you can't even select any year before 2003 this works like a min date

https://user-images.githubusercontent.com/46891372/210883269-2158b0e1-ae51-4372-ba2e-3bbb85a60e31.mp4

It's not a bug, but agreed that it's not ideal for many use cases

probablykasper avatar Jan 06 '23 06:01 probablykasper

Any updates on this?

3nematix avatar Jan 24 '23 15:01 3nematix

No sorry, I don't expect to be implementing new features anytime soon unless there's a PR or someone becomes a GitHub sponsor

probablykasper avatar Jan 24 '23 20:01 probablykasper