DataTables / DataTablesSrc

DataTables source repository
https://datatables.net
MIT License
587 stars 422 forks source link

data-visible="false" hides header but not data #279

Closed chalda-pnuzig closed 1 month ago

chalda-pnuzig commented 1 month ago

In version 2, when utilizing <th data-visible="false"> to hide a column, it appears that only the header element <th> is affected, leaving the data elements <td> visible. This behavior contrasts with the expected outcome observed in version 1.13.

Heres a link to a reproduction:

AllanJard commented 1 month ago

Thank you for the test case. Agreed - there is an error in there somewhere.

AllanJard commented 1 month ago

I've committed a change to DataTables to address this (and other related issues.

I've put on the 2.1 branch as it is a bit too much internal reorganisation than I'm comfortable putting into a patch release. I'll be adding unit tests to make sure this doesn't happen again as well, as part of the 2.1 development work.

I'm not yet sure when 2.1 will drop - perhaps a few months. There are other things to work on for it as well.

Apologies for this error and the delay in getting a fixed release.