afterStateUpdated() not triggering on TextInput

afterStateUpdated method is not triggering on TextInput inside an repeater.
TextInput::make('item_count')
->label('Quantity')
->numeric()
->minValue(1)
->required()
->hidden(fn($record, string $operation) => $operation == 'edit' ? $record->product->trashed() : false)
->live()
->afterStateUpdated(function(?string $state) {
dd($state);
}),
TextInput::make('item_count')
->label('Quantity')
->numeric()
->minValue(1)
->required()
->hidden(fn($record, string $operation) => $operation == 'edit' ? $record->product->trashed() : false)
->live()
->afterStateUpdated(function(?string $state) {
dd($state);
}),
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server