DarkLord
DarkLord
Explore posts from servers
FFilament
Created by DarkLord on 12/18/2023 in #❓┊help
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);
}),
1 replies