Open IlliaVeremiev opened 2 months ago
I believe the issue occurs because the table header is hidden when the page initially loads, as there are no items to display. A simple solution would be to make one of the table columns searchable
which would force the table header/toolbar to appear:
TextColumn::make('name')
->searchable()
@leandrocfe, it works! Thanks!
Package
filament/filament
Package Version
v3.2.106
Laravel Version
v11.21.0
Livewire Version
v3.5.6
PHP Version
PHP 8.2.12
Problem description
Have Filament
Resource
withListRecords
page. OnListRecords
page, getTabs method is implemented (WithAll
andSome
tabs) Table defined asreorderable
with condition, thatAll
tab is not reorderable.When open dashboard and navigate to resource page, reorder button is hidden, when navigate
Some
tab, it is still hidden. If refresh the page onSome
tab, it works as expected. The problem happens only if navigated to the Resource page from another page (Dashboard or other Resources).Expected behavior
When navigate
All
tab, reorder button should be hidden. When navigateSome
tab, reorder button should be displayedSteps to reproduce
This seems to be happening because the header toolbar container has the display: none style. Even though the button tends to be rendered.
As a temporary workaround I created custom action button, that calls
toggleTableReordering
Reproduction repository (issue will be closed if this is not valid)
https://github.com/IlliaVeremiev/filament-reorderable-with-tabs-issue
Relevant log output
No response
Donate 💰 to fund this issue