Possible bug in destroy with FixedColumns
Possible bug in destroy with FixedColumns
![timdiggins](https://secure.gravatar.com/avatar/18ede535b7a595e800aede6ae10ab931/?default=https%3A%2F%2Fvanillicon.com%2F18ede535b7a595e800aede6ae10ab931_200.png&rating=g&size=120)
Link to test case:
n/a (sorry quite tricky to create a simple test case from my use of framework code)
Debugger code (debug.datatables.net):
https://debug.datatables.net/upugok
Error messages shown:
Uncaught TypeError: Cannot read properties of undefined (reading 'offsetWidth')
at FixedColumns._addStyles (jquery.dataTables.source.js:33:1)
at jquery.dataTables.source.js:33:1
Description of problem:
using DataTables-1.11.4 and FixedColumns-4.0.1 (with bootstrap3 integrations).
When I do a destroy
on a datatable with FixedColumns configured on it, I am getting an error. This doesn't happen if I downgrade back to FixedColumns-3.2.2
This question has accepted answers - jump to:
Answers
Hi @timdiggins ,
This isn't something that we have seen before. Could you please post a link to your page if you are unable to replicate it on the live site? We are going to have to see this to debug it properly.
Thanks,
Sandy
Ok fair enough - I've made a repro that you can see here:
https://www.red56.uk/datatables-fixed-columns-issue/sample-issue.html
(click the button marked "Destroy()")
you can see the code at https://github.com/red56/datatables-fixed-columns-issue
Hi,
Thanks very much for the test case! It is an error in FixedColumns 4.0.1 I'm afraid. I committed a fix for it but it isn't yet released. It is in the nightly if you would like to try that, or if you prefer wait for 4.0.2 which I can get tagged up on Monday?
Regards,
Allan
Oh fab. thanks for the quick fix. I can wait for the version 4.0.2 -- I'm not actually dependent on v4, just trying to keep libraries up to date.
Although there's no urgency for 4.0.2, it would be useful to me to get this issue resolved and not hanging on my side - can you let me know likely timeline for release?
Apologies - you are absolutely right. This slipped me by. I'll get it done tomorrow morning!
Allan
Superb. Thanks!
That is tagged up and released now
.
Allan
Thanks! It doesn't seem to be on the releases list / CDN:
https://cdn.datatables.net/fixedcolumns/#Releases (not listed)
https://cdn.datatables.net/fixedcolumns/4.0.2 (forbidden)
is that just a matter of time?
The docs might not be updated but you can get 4.0.2 from the Download Builder.
Kevin
Thanks for this. I can confirm it fixes the problem I observed.