question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TableHeader: prop type `colGroups` is invalid

See original GitHub issue

Hi 😃,

I am getting a warning:

Warning: Failed prop type: TableHeader: prop type colGroups is invalid; it must be a function, usually from React.PropTypes. in TableHeader (created by BootstrapTable)

with even the simple code as:

render() {
    return (
        <BootstrapTable data={[{id:1}]} >
            <TableHeaderColumn isKey={true} dataField='id'>ID</TableHeaderColumn>
        </BootstrapTable>
    )
}

Using 15.4.1 react and latest version of react boostrap table

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:6
  • Comments:21 (9 by maintainers)

github_iconTop GitHub Comments

5reactions
AllenFangcommented, Dec 26, 2016

thanks for issue report, I think I made a little mistake on v2.8.0, I’ll fix it soon.

3reactions
AllenFangcommented, Dec 28, 2016

hi all, this issue fixed on v2.8.1, let me know if this problem still remain.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Warning: Failed prop type: Invalid prop `children` supplied to ...
Using react-md, I'm trying to build a table from an array of objects. I have one fixed column header but everything else is...
Read more >
<th>: The Table Header element - HTML - MDN Web Docs
colgroup : The header belongs to a colgroup and relates to all of its cells. If the scope attribute is not specified, or...
Read more >
theme_table | theme.inc | Drupal 7.x
An array of attributes applied to the COLGROUP element, ... sticky: Use a "sticky" table header. empty: The message to display in an...
Read more >
Tables in HTML documents
Furthermore, authors may declare column properties at the start of a table definition (via the COLGROUP and COL elements) in a way that...
Read more >
Table | Components - BootstrapVue
Using props responsive and fixed together will not work as expected. Fixed table layout uses the first row (table header in this case)...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found