You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DatePicker::make( 'date' )
->minDate( October )
->maxDate( End of December )
When you click on the date field, the displayed month will default to minDate (October) instead of the current month (December).
Expected behavior
If possible, we should add an option to select the default focus month when clicking the date field or provide a way to prevent the focus from being forced to the minDate.
Steps to reproduce
Set up the DatePicker with the following configuration:
now() = March
Package
filament/filament
Package Version
3.2.131
Laravel Version
11.35.1
Livewire Version
3.5.12
PHP Version
8.2
Problem description
If the DatePicker is set up like this
now() = Dec
DatePicker::make( 'date' )
->minDate( October )
->maxDate( End of December )
When you click on the date field, the displayed month will default to minDate (October) instead of the current month (December).
Expected behavior
If possible, we should add an option to select the default focus month when clicking the date field or provide a way to prevent the focus from being forced to the minDate.
Steps to reproduce
now() = March
DatePicker::make('date')
->minDate(April)
->maxDate(December)
Open the DatePicker by clicking on the date field.
Observe the displayed month:
Instead of focusing on the current month (Dec), the DatePicker will default to the minDate (October).
Reproduction repository (issue will be closed if this is not valid)
https://github.com/dharen008/demo
Relevant log output
No response
Donate 💰 to fund this issue
The text was updated successfully, but these errors were encountered: