Responsive extension doesn't display first column in child row

Responsive extension doesn't display first column in child row

andycook71andycook71 Posts: 3Questions: 2Answers: 0
edited November 2014 in Bug reports

Hi,

When I set up a table with the responsive extension, and the first column is configured to move to the child row, the child row doesn't display if there is only one column being moved.

The example shows the second column as the control column, first column should be moved to child row at less than "desktop" width.

http://live.datatables.net/hanifuhi/2

This looks like it's a bug with the filter in _detailsVis:

// Only counts as hidden if it doesn't have the 'never' class return $( col.header() ).hasClass( 'never' ) ? null : idx;

When idx is 0 (ie first column) the filter returns 0 which is falsy. I think you should be returning true:

return $( col.header() ).hasClass( 'never' ) ? null : true;

Other than this bug, responsive extensions are awesome!

thanks,
Andy

This discussion has been closed.