Skip to content

Commit

Permalink
Fixes hidden toggleable column being shown in column toggle dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-idkwhoami committed May 18, 2024
1 parent 66f7a2b commit 1d9caff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/tables/src/Concerns/CanToggleColumns.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ protected function getTableColumnToggleFormSchema(): array
$schema = [];

foreach ($this->getTable()->getColumns() as $column) {
if (! $column->isToggleable()) {
if (! $column->isToggleable() || $column->isHidden()) {
continue;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/tables/src/Table/Concerns/CanToggleColumns.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public function getColumnToggleFormWidth(): MaxWidth | string | null
public function hasToggleableColumns(): bool
{
foreach ($this->getColumns() as $column) {
if (! $column->isToggleable()) {
if (! $column->isToggleable() || $column->isHidden()) {
continue;
}

Expand Down

0 comments on commit 1d9caff

Please sign in to comment.