ce icon indicating copy to clipboard operation
ce copied to clipboard

Freeze function does not clean up after itself

Open flatsiedatsie opened this issue 2 years ago • 0 comments

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');
        }

flatsiedatsie avatar Jul 24 '23 11:07 flatsiedatsie