We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
3.9.2
MacOSX 10.13.6, Opera 55.0.2994.61, React 16.3.2
https://github.com/ant-design/ant-design/blob/master/components/list/index.tsx
Simple use the List component with several itens.
I expect the Items keys to be the one returned by the rowKey function.
The List component use the React.Children.map to clone the Itens. But the React.Children.map adds a prefix to the keys of the each Item, causing a forced refresh.
The bug is in this line
ant-design/components/list/index.tsx
Lines 240 to 244 in 0219aa2
Example:
The text was updated successfully, but these errors were encountered:
If possible, I can fix it.
Sorry, something went wrong.
No branches or pull requests
Version
3.9.2
Environment
MacOSX 10.13.6, Opera 55.0.2994.61, React 16.3.2
Reproduction link
https://github.com/ant-design/ant-design/blob/master/components/list/index.tsx
Steps to reproduce
Simple use the List component with several itens.
What is expected?
I expect the Items keys to be the one returned by the rowKey function.
What is actually happening?
The List component use the React.Children.map to clone the Itens. But the React.Children.map adds a prefix to the keys of the each Item, causing a forced refresh.
The bug is in this line
ant-design/components/list/index.tsx
Lines 240 to 244 in 0219aa2
Example:
The text was updated successfully, but these errors were encountered: