Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: Each child in an array or iterator should have a unique "key" prop. Check the render method of TableHeader. #1583

Closed
binarykitchen opened this issue Sep 3, 2015 · 7 comments
Labels
component: table This is the name of the generic UI component, not the React module! duplicate This issue or pull request already exists

Comments

@binarykitchen
Copy link

I tried adding unique keys everywhere but no luck.

Probably this warning is due to an internal bug? Can you check that you assign unique keys in the iterator for table header contents?

@avocadowastaken
Copy link
Contributor

+1

1 similar comment
@peterpuzos
Copy link

+1

AllenSH12 added a commit to AllenSH12/material-ui that referenced this issue Sep 11, 2015
- Key property was defined on the Checkbox element, causing React
to throw a warning when enumerating any TableHeaderColumns
- Fixes mui#1583
@afilp
Copy link
Contributor

afilp commented Sep 23, 2015

+1
Same in 'dialog.js'

@atlewee
Copy link

atlewee commented Oct 15, 2015

+1

@chmann
Copy link

chmann commented Oct 15, 2015

I just traced this through because it was driving me nuts. The problem is that no key is being placed on the Select All column. The key is added for the checkbox but not for the TableHeaderColumn wrapper.

...which is exactly what has already been fixed. #1625 :-) Thanks!

@oliviertassinari
Copy link
Member

Duplicate of #2028

@tianwawawa
Copy link

move key prop is right

@zannager zannager added duplicate This issue or pull request already exists component: table This is the name of the generic UI component, not the React module! labels Dec 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: table This is the name of the generic UI component, not the React module! duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

9 participants