Repeater deleteAction

I am trying to do some changes to some other fields when deleting one of the repeater items. In v2 there was an option to do this using ->registerListeners([ 'repeater::deleteItem' => [ function (Forms\Components\Component $component, string $statePath): void {} ]); but it does not seem to work. Is there any way to achieve this in Filament v3? Also, I am getting issues with the repeater when adding/deleting them constantly, at some moment it does seem to stop working.
1 Reply
tim_vdv
tim_vdv9mo ago
Repeater::make('members')
->schema([
// ...
])
->deleteAction(
fn (Action $action) => $action->after(fn() => yourFunction()),
)
Repeater::make('members')
->schema([
// ...
])
->deleteAction(
fn (Action $action) => $action->after(fn() => yourFunction()),
)