filamentphp / filament

A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS.
https://filamentphp.com
MIT License
19.24k stars 2.96k forks source link

DatePicker native False with Min and Max focus Chosen/Current month #13988

Open dharen008 opened 2 months ago

dharen008 commented 2 months ago

Package

filament/filament

Package Version

3.1

Laravel Version

11

Livewire Version

3

PHP Version

8.2

Problem description

if the DatePicker is like this

now() = March

DatePicker::make( 'date' ) ->minDate( April ) ->maxDate( December )

If you click on the date field, the focus month will be minDate, not the current month.

Expected behavior

If possible, if we can apply one of this options

  1. we should have an option to choose which month to focus on when clicking the date field
  2. auto focus the current day not the min date

Steps to reproduce

have additional feature to set the focus date when click

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

Fund with Polar

dharen008 commented 2 months ago

i think the issue is still not fix yet? https://github.com/filamentphp/filament/pull/14063