Skip to content

Commit

Permalink
Fix: <sup> was lost after adding/removing sort indicator.
Browse files Browse the repository at this point in the history
  • Loading branch information
srobotta committed Oct 2, 2024
1 parent def13dd commit abc101f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions table-multisort/listtemplatefooter.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@
// that are not in the columns to sort array.
document.querySelectorAll('th').forEach((th, i) => {
if (columns.filter(e => e.index === i).length > 0 && columnHeader !== th) return;
th.textContent = th.textContent.replace('▲', '').replace('▼', '');
th.innerHTML = th.innerHTML.replace('▲', '').replace('▼', '');
});
columnHeader.textContent += ' ' + indicator;
columnHeader.innerHTML += ' ' + indicator;
}

document.querySelectorAll('#sort-table th').forEach((header, i) => {
Expand Down

0 comments on commit abc101f

Please sign in to comment.