fix: fix extra span element when children is null#53723
Conversation
|
|
📝 WalkthroughSummary by CodeRabbit
Walkthrough本次变更对 Checkbox 组件的渲染逻辑进行了调整。具体来说,组件现在只有在 Changes
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (16)
🔇 Additional comments (1)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
👁 Visual Regression Report for PR #53723 Failed ❌
Important There are 1 diffs found in this PR: 🛑
|
WalkthroughThis pull request addresses a bug where an extra Changes
|
size-limit report 📦
|
More templates
commit: |
Bundle ReportChanges will decrease total bundle size by 6 bytes (-0.0%) ⬇️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: antd.min-array-pushAssets Changed:
|
Deploying ant-design with
|
| Latest commit: |
528a612
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://6c7bda1b.ant-design.pages.dev |
| Branch Preview URL: | https://checkbox-fix.ant-design.pages.dev |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #53723 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 769 769
Lines 13907 13908 +1
Branches 3653 3654 +1
=========================================
+ Hits 13907 13908 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
huang-ze-jia
left a comment
There was a problem hiding this comment.
children != null 就可以了吧,包含了children !== undefined && children !== null的情况
|
ok |


中文版模板 / Chinese template
🤔 This is a ...
🔗 Related Issues
💡 Background and Solution
📝 Change Log