colspan not working with single head row

colspan not working with single head row

TobiasBgTobiasBg Posts: 9Questions: 1Answers: 0

According to https://datatables.net/examples/basic_init/complex_header, colspan is fully support in header rows.
This is working well in that example, obviously, where the header has multiple rows.

However, if a <thead> only has a single <tr> with cells that use colspan, a JavaScript error is raised.

Here is a test case with a single header row and one colspanned cell in it:
https://live.datatables.net/nipufeda/1/

However, when duplicating the row (I prepared that as a HTML comment in the test case), everything works fine again.

Replies

  • allanallan Posts: 63,368Questions: 1Answers: 10,449 Site admin

    That's unexpected. Thanks for letting me know. I'll take a look into it.

    Allan

Sign In or Register to comment.