Skip to content

Commit 7b172fe

Browse files
author
Erwin Dondorp
committed
prefer working with classlists
1 parent 7353ac2 commit 7b172fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

saltgui/static/sorttable/sorttable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export class SortTable {
6060
const theadrow = clickElement.parentNode;
6161
for(const cell of theadrow.childNodes) {
6262
if (cell.nodeType === 1) { // an element
63-
if(cell.className.includes("sorttable_sorted")) prev_sorttable_columnindex = cell.sorttable_columnindex;
63+
if(cell.classList.contains("sorttable_sorted")) prev_sorttable_columnindex = cell.sorttable_columnindex;
6464
cell.classList.remove("sorttable_sorted_reverse");
6565
cell.classList.remove("sorttable_sorted");
6666
}

0 commit comments

Comments
 (0)