F
Filament4mo ago
nowak

isIndividual column search removes table when no results

I have a TextColumn that I want to make searchable and set isIndividual to true:
TextColumn::make('user.full_name')
->label('Name')
->sortable(['first_name', 'last_name', 'company'])
->searchable(['first_name', 'last_name', 'company'], isIndividual: true),
TextColumn::make('user.full_name')
->label('Name')
->sortable(['first_name', 'last_name', 'company'])
->searchable(['first_name', 'last_name', 'company'], isIndividual: true),
Which works great. But when I search for a name that does not exist, the table is removed and the search field (see screenshots). Is it possible to just show an empty table instead of nuking the table when there are no search results? This adds an annoying element of with using isIndividual: true, as you have to clear the added filter and retype the search every time you search for something that does not exist, instead of just changing your search input.
No description
No description
No description
Solution:
GitHub
isIndividual column search removes table when no results · Issue #1...
Package filament/filament Package Version v3.2.96 Laravel Version v11.7.0 Livewire Version v3.5.1 PHP Version PHP 8.2 Problem description I have a TextColumn that I want to make searchable and set ...
Jump to solution
4 Replies
Dennis Koch
Dennis Koch4mo ago
Sounds like a bug to me. Can you open an issue?
nowak
nowakOP4mo ago
Sure, will do as soon as some time opens up for it. Is it necessary for me to include an mwe for this issue?
Dennis Koch
Dennis Koch4mo ago
I think you can point to https://demo.filamentphp.com/shop/customers and notify me so I'll reopen it
Solution
nowak
nowak4mo ago
GitHub
isIndividual column search removes table when no results · Issue #1...
Package filament/filament Package Version v3.2.96 Laravel Version v11.7.0 Livewire Version v3.5.1 PHP Version PHP 8.2 Problem description I have a TextColumn that I want to make searchable and set ...
Want results from more Discord servers?
Add your server