jeffreydwalter / ColReorderWithResize

Column reordering and resizing plug-in for DataTables
http://www.datatables.net/
MIT License
42 stars 51 forks source link

Stacktrace using colReorder with destroy() - fix is in upstream #38

Open ShaheedHaque opened 9 months ago

ShaheedHaque commented 9 months ago

When using this project with DataTables.destroy(), I get an error like this:

Uncaught TypeError: Cannot read properties of null (reading 'dt')
    at ColReorder._fnStateSave (ColReorderWithResize.js:903:32)
    at ce.fn.init.<anonymous> (ColReorderWithResize.js:773:31)
    at jquery.dataTables.min.js:4:47589
    at Function.map (jquery.min.js:2:3971)
    at R (jquery.dataTables.min.js:4:47536)
    at de (jquery.dataTables.min.js:4:45096)
    at B.<anonymous> (jquery.dataTables.min.js:4:63849)
    at B.iterator (jquery.dataTables.min.js:4:52119)
    at B.<anonymous> (jquery.dataTables.min.js:4:63713)
    at B.visible (jquery.dataTables.min.js:4:53602)

This was also reported upstream and upstream has a fix in this commit. Please apply!