-
Notifications
You must be signed in to change notification settings - Fork 27
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
Got error if there are some invisible columns #7
Comments
Don't need to resize invisible cols, as user cungobu pointed.
Merged and published. Please recheck with v1.7.1 and close the issue if resolved. |
Looks like the PR #11 fixed the original error message! 🎉
But now I see another error message coming from within the |
I got an issue when some columns in my table are invisible which can be set by
columnDefs: [ { targets: [0, 1], visible: false }]
or
columns: [{ title: 'Customer Name', data: 'Name', visible: false }]
I'm using colResize with saveState = true. It's ok for the first time but since the next time I got the error like this
Uncaught TypeError: Cannot read properties of null (reading 'match')
from the line
column.sWidth.match(/(\d+)/i)
as sWidth was undefined which could be caused by calculating the width of an invisible DOM.
Actually, we can check null / undefined then skip & continue with visible columns because we do not need to resize invisible columns.
The text was updated successfully, but these errors were encountered: