FAQ | This is a LIVE service | Changelog

Skip to content

Check for existence of th before prepending span to trs in mobile view

Nick Mattin requested to merge github/fork/alt36/check-th-before-prepending into master

Created by: alt36

projectlight.initTables unconditionally prepends the contents of th elements to table cells in the mobile view. If the table does does have a thead.th, the function prints "undefined" in the prepended span for every element of the table. It would be better to check if headerTextArray is populated before preprending the span.

Merge request reports