© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
8 replies
toeknee

Bug? Actions show disabled when set to hidden

Using actions on a LW Component, we have for example:


eturn Action::make('loadDraft')
            ->visible(fn () => MyModel::where('id', '=', $this->id)
                ->where('is_draft', '=', true)
                ->where('user_id', '=', auth()->user()?->id)->count() >= 1)
            ->label('Load a Draft')
            ->modalWidth('md')
            ->form([
                Select::make('id')
                    ->hiddenLabel()
                    ->options(
                        MyModel::where('id', '=', $this->instance_id)
                            ->where('is_draft', '=', true)
                            ->where('user_id', '=', auth()->user()?->id)
                            ->orderBy('created_at', 'desc')
                            ->pluck('created_at', 'id') 
                            ->map(function ($item, $key) {
                                return $item->format('d M Y - H:i:s');
                            })

                    ),
            ])
            ->action(function ($data) {
                dd($date);
            });
eturn Action::make('loadDraft')
            ->visible(fn () => MyModel::where('id', '=', $this->id)
                ->where('is_draft', '=', true)
                ->where('user_id', '=', auth()->user()?->id)->count() >= 1)
            ->label('Load a Draft')
            ->modalWidth('md')
            ->form([
                Select::make('id')
                    ->hiddenLabel()
                    ->options(
                        MyModel::where('id', '=', $this->instance_id)
                            ->where('is_draft', '=', true)
                            ->where('user_id', '=', auth()->user()?->id)
                            ->orderBy('created_at', 'desc')
                            ->pluck('created_at', 'id') 
                            ->map(function ($item, $key) {
                                return $item->format('d M Y - H:i:s');
                            })

                    ),
            ])
            ->action(function ($data) {
                dd($date);
            });


The action button shows greys out, disabled should only do that, now visible/disabled
Solution
You should check the visibility if you are using the standalone mode
Standalone action not hiding
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
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Actions : disabled() and hidden() are the same
FilamentFFilament / ❓┊help
3y ago
Actions with ->hidden() showing disabled and not hidden inside infolists
FilamentFFilament / ❓┊help
5mo ago
Possible Bug in Action ->disabled() and ->hidden()
FilamentFFilament / ❓┊help
2y ago
Actions still visible when setting ->hidden()
FilamentFFilament / ❓┊help
3y ago