afterStateUpdated() is not working in Datepicker inside livewire components

 DatePicker::make('date')
                    ->label('')
                    ->afterStateUpdated(function ($state) {
                        info($state);
                    })
                    ->native(false)
                    ->reactive()
                    ->minDate(Carbon::now())
                    ->closeOnDateSelection()
                    ->extraAttributes(['class' => 'date_picker']),

this is my code please check
when i use tis DatePicker in Normal Resource or widget the afterStateUpdated() is working but not working if i put the same DatePicker inside a Livewire component Form
Solution
Ok sounds like you haven't filled your component.

ensure you have $this->form->fill() on the mount method.
Was this page helpful?