The key of column.title was missing in Table #9658
Closed
Comments
@terence55 Could you send a PR? |
OK |
terence55
added a commit
to terence55/ant-design
that referenced
this issue
Mar 14, 2018
yesmeck
added a commit
that referenced
this issue
Mar 14, 2018
This was referenced Mar 19, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
3.3.0
Environment
OSX El Capitan, Chrome 64
Reproduction link
https://codesandbox.io/s/3rzr5xr8zm
Steps to reproduce
Define custom header with
react-resizable
, then I got the warnings from React: Each child in an array or iterator should have a unique "key" prop.It was caused by the implementation of function
renderColumnsDropdown
inTable
.It would drop the
key
even I defined that in column.title. It was ignored in the newspan
.react-resizable
will wrap children in an array so every child requireskey
prop.react-resizable
What is expected?
No warnings.
What is actually happening?
React warnings for missing key
The text was updated successfully, but these errors were encountered: