fix: ignore table sort while its column is toggled hidden
This commit is contained in:
1 parent
c4540cd302
commit
71ab17f6f2
3 files changed
+26
-2
No files matched your search
@@ -89,7 +89,8 @@ trait CanSortRecords
|
||||
|
||||
if (
|
||||
$tableSortColumn &&
|
||||
$column = $this->getTable()->getSortableVisibleColumn($tableSortColumn)
|
||||
($column = $this->getTable()->getSortableVisibleColumn($tableSortColumn)) &&
|
||||
(! $column->isToggledHidden())
|
||||
) {
|
||||
$sortDirection = $this->getTableSortDirection() === 'desc' ? 'desc' : 'asc';
|
||||
|
||||
|
||||
Reference in new issue
Block a user