Modal not closing after action
Ive tried closing in both the action() and after() with no luck. Its properly making the change, just got closing after. I know i must be missing something simple.
->modalFooterActions(fn ($action) => [
Tables\Actions\Action::make('reject')
->requiresConfirmation()
->action(function (ComparableUnit $record, $action) {
$record->rftas()->updateExistingPivot($this->getOwnerRecord()->id, ['status' => ComparableUnitRftaStatus::Rejected]);
return $action->cancel();
}),
$action->getModalCancelAction(),
]),