ce
ce copied to clipboard
Freeze function does not clean up after itself
Currently the freeze function cannot be toggled "on the fly" because when its disabled there are still table cells with the jexcel_freezed class remaining.
Luckily, removing them manually gets the table back to normal.
Here's how I solved it in my code:
// clean up remaining classes which jspreadsheet leaves behind
var frozen_cells = document.querySelectorAll('td.jexcel_freezed');
for (var i = 0; i < frozen_cells.length; i++) {
frozen_cells[i].classList.remove('jexcel_freezed');
}