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

Allow unrestricted date ranges without min/max #42

Open
probablykasper opened this issue Jan 6, 2023 · 3 comments
Open

Allow unrestricted date ranges without min/max #42

probablykasper opened this issue Jan 6, 2023 · 3 comments

Comments

@probablykasper
Copy link
Owner

probablykasper commented Jan 6, 2023

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:

/** The earliest year the user can select */
export let min = new Date(defaultDate.getFullYear() - 20, 0, 1)
/** The latest year the user can select */
export let max = new Date(defaultDate.getFullYear(), 11, 31, 23, 59, 59, 999)

@probablykasper
Copy link
Owner Author

From @3nematix in #41:

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

296bb81deea1ba52149042a4328e15e8.mp4

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

@3nematix
Copy link

Any updates on this?

@probablykasper
Copy link
Owner Author

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

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