How to close datepicker once the user clicks a date?

The only way to close the datepicker is by clicking outside the calendar.
Solution:
use the closeOnDateSelection() method.
Jump to solution
3 Replies
Solution
Bezhan
Bezhan2y ago
use the closeOnDateSelection() method.
Bezhan
Bezhan2y ago
Forms\Components\DatePicker::make('until')
->placeholder('select start date')
->format('Y-m-d')
->maxDate(now()->addDay())
->closeOnDateSelection()
Forms\Components\DatePicker::make('until')
->placeholder('select start date')
->format('Y-m-d')
->maxDate(now()->addDay())
->closeOnDateSelection()
vahnmarty
vahnmartyOP2y ago
That worked. Thanks.
Want results from more Discord servers?
Add your server