Material-ui: Table: invalid header DOM is generated

Created on 8 May 2017  路  3Comments  路  Source: mui-org/material-ui

The following code example makes 3 warnings in the console.
https://codesandbox.io/s/gwwB9LA6

Versions

  • Material-UI: 0.18.0
  • React: 15.5.3
  • Browser: Chrome 58.0.3029.81 (64 bit)

Warnings:

Warning: validateDOMNesting(...): cannot appear as a child of . See TableTest > TableHeader > thead > TableHeaderColumn > th.

Warning: validateDOMNesting(...): cannot appear as a child of . See TableTest > TableHeaderColumn > th > TableHeader > TableHeaderColumn > th.

Warning: Unknown prop rowNumber on tag. Remove this prop from the element. For details, see https://fb.me/react-unknown-prop

Most helpful comment

Oops

All 3 comments

I believe that you've forgotten to include TableRow when creating the header
Take a look at the simple example on the main site

Oops

@slavab89, thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mattmiddlesworth picture mattmiddlesworth  路  3Comments

newoga picture newoga  路  3Comments

TimoRuetten picture TimoRuetten  路  3Comments

ryanflorence picture ryanflorence  路  3Comments

FranBran picture FranBran  路  3Comments