From 44f9da98acd31b2e871d0074bd638998990888b1 Mon Sep 17 00:00:00 2001 From: Kamron Brooks Date: Fri, 9 Jul 2021 22:15:54 +1000 Subject: [PATCH] Update SortableLink.php Remove the 'href' from anchor attributes so it's not accidentally appended twice when rendering --- src/ColumnSortable/SortableLink.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ColumnSortable/SortableLink.php b/src/ColumnSortable/SortableLink.php index 5c19504..986b0f2 100644 --- a/src/ColumnSortable/SortableLink.php +++ b/src/ColumnSortable/SortableLink.php @@ -267,6 +267,8 @@ private static function buildAnchorAttributesString($anchorAttributes) return ''; } + unset($anchorAttributes['href']); + $attributes = []; foreach ($anchorAttributes as $k => $v) { $attributes[] = $k.('' != $v ? '="'.$v.'"' : '');