colspan not working with single head row

colspan not working with single head row

TobiasBgTobiasBg Posts: 10Questions: 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,482Questions: 1Answers: 10,467 Site admin

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

    Allan

  • TobiasBgTobiasBg Posts: 10Questions: 1Answers: 0

    Hi Allan!

    Sure, no problem! Thanks for taking a look!
    Coming to think if it, should I maybe have better created a GitHub issue? I can of course do that as well. Not sure what you prefer for things like this.

    Best wishes,
    Tobias

  • allanallan Posts: 63,482Questions: 1Answers: 10,467 Site admin

    Here is fine. Apologies for the fact that I've not been able to look into it yet.

    Allan

Sign In or Register to comment.