Skip to content

Commit e65f1a0

Browse files
committed
(fix) sort still active after setting field as sortable = false
1 parent 42bb3e7 commit e65f1a0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Field/Field.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,9 @@ public function label()
204204

205205
public function sortLink(): ?string
206206
{
207-
$link = null;
207+
if ($this->sortDirection === 0) {
208+
return null;
209+
}
208210

209211
if ($this->sortDirection === -1) {
210212
$this->addCssClass('sortable', 'js-bread-sortable desc');

0 commit comments

Comments
 (0)