© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
4 replies
98.dev

Modal does not show close button by default, on custom columns

I have a page that shows a custom column:

public function table(Table $table): Table
{
    $user = auth()->user();

    $client = Client::query()->where('id', $user->client_id)->first();

    return $table
        ->query($client()->getQuery())
        ->columns(
            [
                ViewColumn::make('deadlines')
                    ->label('Deadlines')
                    ->view('filament.tables.columns.client.deadlines')
            ]
        );
}
public function table(Table $table): Table
{
    $user = auth()->user();

    $client = Client::query()->where('id', $user->client_id)->first();

    return $table
        ->query($client()->getQuery())
        ->columns(
            [
                ViewColumn::make('deadlines')
                    ->label('Deadlines')
                    ->view('filament.tables.columns.client.deadlines')
            ]
        );
}


In the custom column Blade.php file, there is a modal inside it:

<x-filament::modal :close-button="true" id="test" width="xl">
test
</x-filament::modal>
<x-filament::modal :close-button="true" id="test" width="xl">
test
</x-filament::modal>


There is also a button to open the modal on click:

x-on:click="$dispatch('open-modal', {id: 'test'})"
Problem
x-on:click="$dispatch('open-modal', {id: 'test'})"
Problem


According to the documentation:

By default, modals have a close button in the top right corner.

https://filamentphp.com/docs/3.x/support/blade-components/modal#hiding-the-modal-close-button

However, this is not the case for me. The close button is not displayed.
Modal Blade component - Core Concepts - Filament
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

Custom close modal button
FilamentFFilament / ❓┊help
2y ago
Show button loading on custom action button
FilamentFFilament / ❓┊help
3y ago
sidebar navigation close by default
FilamentFFilament / ❓┊help
7mo ago
Close Modal Custom Page Livewire Not Working Correctly
FilamentFFilament / ❓┊help
2y ago