Hi,
I’m having an issue with loading tab content on a listing after upgrading to v5. Everything was working correctly on v4.
When I click a tab, the content doesn’t load. I don’t see any request in the Network tab and there are no errors in the console. After refreshing the page, the correct filtered content is displayed (based on the specified field and value).
This is how the tabs are defined:
public function getTabs(): array
{
return [
null => Tab::make('Wszystkie'),
'new' => Tab::make('Nowa')
->query(fn ($query) => $query->where('status', InvoiceKsefStatus::New->value)),
'rejected' => Tab::make('Odrzucona')
->query(fn ($query) => $query->where('status', InvoiceKsefStatus::Rejected->value)),
'require_more_info' => Tab::make('Wymaga informacji')
->query(fn ($query) => $query->where('status', InvoiceKsefStatus::RequireMoreInfo->value)),
];
}
I followed the v5 upgrade guide and think that everything was done correctly on my side.
Thanks