Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Freeze function does not clean up after itself #1632

Open
flatsiedatsie opened this issue Jul 24, 2023 · 0 comments
Open

Freeze function does not clean up after itself #1632

flatsiedatsie opened this issue Jul 24, 2023 · 0 comments

Comments

@flatsiedatsie
Copy link

flatsiedatsie commented Jul 24, 2023

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');
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant