© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago
Prodex

First Action Modal doesn't close

I've implemented a delete action for the
editOptionForm
editOptionForm
like so:

                Forms\Components\Select::make('location_id')
                    ->label('Location')
                    ->relationship('location', 'name')
                    ->required()
                    ->searchable()
                    ->preload()
                    ->createOptionForm([
                        Forms\Components\TextInput::make('name')
                            ->required()
                            ->maxLength(255),
                    ])
                    ->editOptionForm([
                        Forms\Components\TextInput::make('name')
                            ->required()
                            ->maxLength(255),
                    ])
                    ->editOptionAction(fn (Forms\Components\Actions\Action $action, $record) => $action
                        ->extraModalFooterActions([
                            DeleteAction::make()
                                ->record($record)
                                ->cancelParentActions(),
                        ]),
                    ),
                Forms\Components\Select::make('location_id')
                    ->label('Location')
                    ->relationship('location', 'name')
                    ->required()
                    ->searchable()
                    ->preload()
                    ->createOptionForm([
                        Forms\Components\TextInput::make('name')
                            ->required()
                            ->maxLength(255),
                    ])
                    ->editOptionForm([
                        Forms\Components\TextInput::make('name')
                            ->required()
                            ->maxLength(255),
                    ])
                    ->editOptionAction(fn (Forms\Components\Actions\Action $action, $record) => $action
                        ->extraModalFooterActions([
                            DeleteAction::make()
                                ->record($record)
                                ->cancelParentActions(),
                        ]),
                    ),


But the confirmation modal for the delete action is behind the edit modal, because the edit modal doesn't close. Even when using
cancelParentActions
cancelParentActions
.

How can I make it, so the edit modal closes?

Thank you!
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

Close action modal with event
FilamentFFilament / ❓┊help
2y ago
Close Modal After Bulk Action
FilamentFFilament / ❓┊help
3y ago
Can't close modal from custom cancel action
FilamentFFilament / ❓┊help
12mo ago
$get doesn't work in action modal
FilamentFFilament / ❓┊help
3y ago