© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•5mo ago•
7 replies
Jakub

Actions with ->hidden() showing disabled and not hidden inside infolists

What is the bug?

- When you add an
Action
Action
to an infolist, along side some Text Entry
- than you have anything like TextEntry or alone in a Grid/flex ect
->hidden()
->hidden()
it will just disable it and not hide it

->headerActions([])
->headerActions([])
ect

- when inside the section header actions
- or anything inside the array of acitons
- everything works fine as intended


Example


of it working

Section::make('Quick Links')
   ->headerActions([
                  Action::make('add-link')
                    ->hiddenLabel()
                    ->visible(fn () => auth()->user()->role === ERole::ADMIN)
])
...
Section::make('Quick Links')
   ->headerActions([
                  Action::make('add-link')
                    ->hiddenLabel()
                    ->visible(fn () => auth()->user()->role === ERole::ADMIN)
])
...


of it not working

 ->schema([
                RepeatableEntry::make('thread.pinnedProjectLinks')
                    ->label('Project Links')
                    ->contained(false)
                    ->schema([
                        Flex::make([
                            TextEntry::make('name')
                            Action::make('delete-link')
                                    ->visible(fn () => auth()->user()->role === ERole::ADMIN)
                        ])
                    ]),
 ->schema([
                RepeatableEntry::make('thread.pinnedProjectLinks')
                    ->label('Project Links')
                    ->contained(false)
                    ->schema([
                        Flex::make([
                            TextEntry::make('name')
                            Action::make('delete-link')
                                    ->visible(fn () => auth()->user()->role === ERole::ADMIN)
                        ])
                    ]),


debugging

- yes i upgraded to latest filament
- yes i cleared cache
- yes I tried on multiple browsers
- yes I tired just hidden() and hidden(true) and visable (false)
- yes, this doesn't work in other infolists in other situations, this is just one I am posting, but can provide other examples
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

Actions : disabled() and hidden() are the same
FilamentFFilament / ❓┊help
3y ago
Bug? Actions show disabled when set to hidden
FilamentFFilament / ❓┊help
3y ago
Actions not showing?
FilamentFFilament / ❓┊help
2y ago
use Infolists inside action modal
FilamentFFilament / ❓┊help
3y ago