© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
2 replies
RyoShio

Table rows automatically hidden problem

This is my invoice state table, and when I click on the checkbox of table group.
I'm not sure why other rows is automatically hidden.


This issue only occurs when I use the following code for the tabs.
$all = InvoiceState::whereHas('invoice', function ($query)
{
    $query->whereNull('deleted_at');
});

tabs = [
  null => ListRecords\Tab::make('All')
    ->query(fn ($query) => $all),
];
$all = InvoiceState::whereHas('invoice', function ($query)
{
    $query->whereNull('deleted_at');
});

tabs = [
  null => ListRecords\Tab::make('All')
    ->query(fn ($query) => $all),
];


If I use this code for the tabs, there are no issues.
tabs = [
  null => ListRecords\Tab::make('All'),
]
tabs = [
  null => ListRecords\Tab::make('All'),
]


So, I believe the issue lies in the query.


What I am trying to do:
Let the invoice state table filter the rows by tabs, which invoice has been soft deleted from database (deleted_at not null)

What I did:
Use query to do the filter action

My issue:
Some rows will automatically hidden when I pressed the check box of table group. I don't want to hidden these rows!
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

table expandable rows?
FilamentFFilament / ❓┊help
2y ago
Table Sub-Rows
FilamentFFilament / ❓┊help
3y ago
Summarized Table Rows
FilamentFFilament / ❓┊help
3y ago
hidden filter on table
FilamentFFilament / ❓┊help
3y ago