Skip to content

Commit

Permalink
Update SortableLink.php
Browse files Browse the repository at this point in the history
Remove the 'href' from anchor attributes so it's not accidentally appended twice when rendering
  • Loading branch information
Healyhatman authored Jul 9, 2021
1 parent cbbea17 commit 44f9da9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ColumnSortable/SortableLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,8 @@ private static function buildAnchorAttributesString($anchorAttributes)
return '';
}

unset($anchorAttributes['href']);

$attributes = [];
foreach ($anchorAttributes as $k => $v) {
$attributes[] = $k.('' != $v ? '="'.$v.'"' : '');
Expand Down

0 comments on commit 44f9da9

Please sign in to comment.