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

Datepicker with max=today shows years in the future #1205

Open
3 tasks done
himanshumehru opened this issue Feb 27, 2025 · 2 comments
Open
3 tasks done

Datepicker with max=today shows years in the future #1205

himanshumehru opened this issue Feb 27, 2025 · 2 comments

Comments

@himanshumehru
Copy link

Flux version

v-2

Livewire version

latest?

Tailwind version

4?

Browser and Operating System

Chrome Macos

What is the problem?

<flux:date-picker selectable-header class="text-sm" max="today" label="Birthday"/>

How to make the selectable header only show the date that could be selected until today?

Thanks

Code snippets

<flux:date-picker selectable-header class="text-sm" max="today" label="Birthday"/>

How do you expect it to work?

I would hope that I do not see the date in the future when max is set to today.

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.
@livewire livewire locked and limited conversation to collaborators Feb 28, 2025
@joshhanley joshhanley converted this issue into a discussion Feb 28, 2025
@joshhanley joshhanley reopened this Feb 28, 2025
@joshhanley joshhanley converted this issue into a discussion Feb 28, 2025
@joshhanley joshhanley reopened this Feb 28, 2025
@joshhanley
Copy link
Member

@himanshumehru why would you want to set a min/max date for selectable headers? You can set min/max for the selectable date, so it shouldn't matter is someone goes forward to view a month where everything is disabled right?

@joshhanley
Copy link
Member

I was trying to convert this to a feature request, but something is going wrong with GitHub, so I will have to fix that later

@joshhanley joshhanley converted this issue into a discussion Feb 28, 2025
@joshhanley joshhanley reopened this Feb 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants