FilterDatepicker with extraInputAttributes defaulta value
Hello, I have the following filter but it does not load any default values.
`php
Forms\Components\DatePicker::make('backup_month')
->extraInputAttributes(['type' => 'month'])
->afterStateUpdated(function ($livewire, string $state) {
$this->filter = Carbon::parse($state);
return $livewire->dispatch('refresh');
})
->default(now())
->live(onBlur: true)
0 Replies