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

What is the bug? - When you add an Action to an infolist, along side some Text Entry - than you have anything like TextEntry or alone in a Grid/flex ect ->hidden() it will just disable it and not hide it ->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
6 Replies
Jakub
JakubOP2w ago
non admin user view of infolist
No description
Jakub
JakubOP2w ago
- should not have any delete options
Jakub
JakubOP2w ago
admin view of quick links
No description
Dennis Koch
Dennis Koch2w ago
Please report issues on GitHub.
Jakub
JakubOP2w ago
thanks! and wow fixed bug in <12 hours haha

Did you find this page helpful?