© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
8 replies
bernhard

Action outside of the panel not showing modals

I have a component outside of the panel:

class Search extends Component implements HasForms, HasActions
{
    use InteractsWithActions;
    use InteractsWithForms;


    public function render(): View
    {
        return view('livewire.search');
    }


    public function deleteAction(): Action
    {
        return Action::make('delete')
            ->requiresConfirmation()
            ->action(fn () => dd(1));
    }
}
class Search extends Component implements HasForms, HasActions
{
    use InteractsWithActions;
    use InteractsWithForms;


    public function render(): View
    {
        return view('livewire.search');
    }


    public function deleteAction(): Action
    {
        return Action::make('delete')
            ->requiresConfirmation()
            ->action(fn () => dd(1));
    }
}


<div>
    {{ $this->deleteAction }}
</div>
<div>
    {{ $this->deleteAction }}
</div>


When clicking on the button, nothing happens, no confirm modal is shown. In Dev-Toolbar I see no error. Only thing I can see is that the attribute
disabled=true
disabled=true
is set for a second.

When I now remove the
->requiresConfirmation()
->requiresConfirmation()
and click again, I can see the
dd
dd
output.

Same goes for custom modals - the modal isn't show. Nothing happens:

Action::make('delete')
    ->form([
        TextInput::make("search")
    ])
    ->action(fn () => dd(1));
Action::make('delete')
    ->form([
        TextInput::make("search")
    ])
    ->action(fn () => dd(1));
Solution
did you added the:
<x-filament-actions::modals />
<x-filament-actions::modals />
Jump to solution
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

Action Modals not showing inside ViewRecords
FilamentFFilament / ❓┊help
5mo ago
Filament Table Outside of Panel
FilamentFFilament / ❓┊help
6mo ago
Use Filament layout/design outside of the panel
FilamentFFilament / ❓┊help
3y ago
How to use the resources outside of panel
FilamentFFilament / ❓┊help
2y ago