DatePicker in widget does not appear to honour ->default();

I'm creating some widgets for a dashboard, the first widget is a pair of DatePickers that I'd like to default the 'from' to the start of the year and the 'to' to the end of the year. When I try using DatePicker::make('from')->default(now()->startOfYear()) it doesn't actually set the date. I've used the same code in a filter on a table and it works perfectly, but doesn't appear to work on a widget.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server