© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
4 replies
Mark Chaney

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(),
]),
->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(),
]),
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Prevent action modal from closing automatically
FilamentFFilament / ❓┊help
3y ago
Multiple Unexpected Fetch Requests Triggered When Closing Modal After Create Action
FilamentFFilament / ❓┊help
2y ago
Prevent Modal Closing?
FilamentFFilament / ❓┊help
2y ago
Modal closing issue
FilamentFFilament / ❓┊help
2y ago