-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels