1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00

fix(datatable): 🐛 Ordinamento non funzionante

This commit is contained in:
Maicol Battistini
2021-12-03 16:14:04 +01:00
parent 1772ff1098
commit 1492a27fe6
2 changed files with 26 additions and 17 deletions

View File

@ -98,8 +98,11 @@ export default class TableColumn extends Component {
button.prop('on', onValue);
if (classList.contains(ascendingClass) || classList.contains(descendingClass)) {
$(this.element).css('cursor', 'auto').off('click');
$(this.element).css('cursor', 'auto');
button.show();
} else if (!classList.contains(ascendingClass) && !classList.contains(descendingClass)) {
$(this.element).css('cursor', 'pointer');
button.hide();
}
}
}