colReorder error with hidden columns in colspan
colReorder error with hidden columns in colspan
![xenar](https://secure.gravatar.com/avatar/4c6fe993557a992236d6622660ace6d3/?default=https%3A%2F%2Fvanillicon.com%2F4c6fe993557a992236d6622660ace6d3_200.png&rating=g&size=120)
Hello
The first line in the header with colspan and rowspan
There is a group of columns united by the colspan attribute
Using colVis we leave only one column visible in this group. Then we try to move this group to another position.
We get an error in colReorder.
Here's an example.
https://live.datatables.net/yeratibo/4/edit
Replies
Sounds like the same issue described in this thread. The next version of ColReorder should have the fix or you can try the nightly version.
Kevin
No, that's another mistake. That bug was closed.
Night version didn't help
Your test case doesn't have the ColReorder library being loaded. I added ColReorder 2.0.1 and see this error:
https://live.datatables.net/yeratibo/5/edit
Is this the error you are getting?
I updated to ColReorder 2.0.2 and the error is gone:
https://live.datatables.net/gatefabe/1/edit
If you still have the error with 3.0.2 then please provide the steps to recreate the error.
Kevin
Ок
In your example https://live.datatables.net/gatefabe/1/edit make invisible the Position and Office columns.
Try dragging the resulting column and you will get an error
Uncaught TypeError: dz is undefined
Agreed - many thanks for the test case. I'll take a look into it as soon as I get a chance to.
Allan
I tried that and did not see any errors. However if Allan is able to recreate the issue then thats all that matters![:smile: :smile:](https://datatables.net/forums/resources/emoji/smile.png)
Kevin
I see moving the top header causes the error. I see this error in the test case when moving the top header:
Kevin
I've committed a fix to address this error. The issue occurred when the first column in a
colspan
group was hidden, since I had assumed that index 0 would be available and visible.It will be in the nightly shortly and in the release I'll make for ColReorder at the end of next week.
Allan