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

Date Picker year is empty on dates earlier than 100 years ago #1123

Open
3 tasks done
bzarzuela opened this issue Feb 19, 2025 · 4 comments
Open
3 tasks done

Date Picker year is empty on dates earlier than 100 years ago #1123

bzarzuela opened this issue Feb 19, 2025 · 4 comments

Comments

@bzarzuela
Copy link

Flux version

v2.0.0

Livewire version

v3.5.20

Tailwind version

^4.0.0

What is the problem?

As shown in the docs, when the date is earlier than January 1925, the year disappears.

Image Image

Code snippets

See live example in the Docs

How do you expect it to work?

Ideally, let us specify the minimum year shown via a min-year or something attribute.

Please confirm (incomplete submissions will not be addressed)

  • I have provided easy and step-by-step instructions to reproduce the bug.
  • I have provided code samples as text and NOT images.
  • I understand my bug report will be closed if I haven't met the criteria above.
@bzarzuela
Copy link
Author

@joshhanley I accidentally closed this issue while commenting that even with the min attribute described in https://fluxui.dev/components/calendar#min/max-dates, the year is still limited to the last 100.

@joshhanley joshhanley reopened this Feb 19, 2025
@joshhanley
Copy link
Member

@bzarzuela no worries! I've reopened it

@calebporzio
Copy link
Contributor

I think we should do what github does - go back 200 years and call it a day

Image

@joshhanley
Copy link
Member

@calebporzio if people need different dates, I wonder whether we should actually set default min/max values and link this in with them. That way people can set the min/max that suits their applications and the selects and the prev/next buttons all follow the same values?

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

3 participants