You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have Filament Resource with ListRecords page.
On ListRecords page, getTabs method is implemented (With All and Some tabs)
Table defined as reorderable with condition, that All 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 on Some 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 navigate Some tab, reorder button should be displayed
Steps to reproduce
Navigate Dashboard page
Navigate Resource page with several tabs and reorderable condition to be hidden on the first tab
Navigate tab where reorderable should be displayed
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)
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:
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.On
ListRecords
page, getTabs method is implemented (WithAll
andSome
tabs)Table defined as
reorderable
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 on
Some
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
The text was updated successfully, but these errors were encountered: