We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7353ac2 commit 7b172feCopy full SHA for 7b172fe
1 file changed
saltgui/static/sorttable/sorttable.js
@@ -60,7 +60,7 @@ export class SortTable {
60
const theadrow = clickElement.parentNode;
61
for(const cell of theadrow.childNodes) {
62
if (cell.nodeType === 1) { // an element
63
- if(cell.className.includes("sorttable_sorted")) prev_sorttable_columnindex = cell.sorttable_columnindex;
+ if(cell.classList.contains("sorttable_sorted")) prev_sorttable_columnindex = cell.sorttable_columnindex;
64
cell.classList.remove("sorttable_sorted_reverse");
65
cell.classList.remove("sorttable_sorted");
66
}
0 commit comments