Skip to content

Commit 8974431

Browse files
committed
fix sorting
1 parent 6a9b2bc commit 8974431

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

package-ui/src/Table.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,9 @@ public function defaultSorting(?Closure $using): static
175175
/**
176176
* Disable sorting on the table.
177177
*/
178-
public function withoutSorting(): static
178+
public function withoutSorting(bool $without = true): static
179179
{
180-
if ($this->columns instanceof ColumnCollection) {
181-
$this->columns->all()->each(fn (Column $column) => $column->withoutSorting());
182-
}
180+
$this->withoutSorting = $without;
183181

184182
return $this;
185183
}

0 commit comments

Comments
 (0)