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
fix: Description children missing key #45757
Conversation
Run & review this pull request in StackBlitz Codeflow. |
size-limit report 📦
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 22c9eaa:
|
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #45757 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 700 700
Lines 11828 11828
Branches 3153 3153
=========================================
Hits 11828 11828
☔ View full report in Codecov by Sentry. |
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
💡 Background and solution
📝 Changelog
children
structure missing the Descriptions.Itemkey
prop.children
结构语法糖时,会丢失 Descriptions.Item 的key
的问题。☑️ Self-Check before Merge
🚀 Summary
🤖 Generated by Copilot at 22c9eaa
This pull request fixes a react key prop error in the
Descriptions
component when using jsx mode. It adds a test case for theuseItems
hook and modifies thetransChildren2Items
function incomponents/descriptions/hooks/useItems.ts
to preserve thekey
prop of theDescriptions.Item
component.🔍 Walkthrough
🤖 Generated by Copilot at 22c9eaa
key
prop of theDescriptions.Item
component to avoid react key prop error and identify the component (link)useItems
hook to check that it does not throw a react key prop error when using jsx mode to render theDescriptions.Item
component (link)