-
-
Notifications
You must be signed in to change notification settings - Fork 46.7k
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: Popover display empty div when title and content is null #42217
Conversation
请同步修复下4.x版本 |
再给4.x-stable分支发PR即可 |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #42217 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 617 617
Lines 10545 10544 -1
Branches 2883 2883
=========================================
- Hits 10545 10544 -1
☔ View full report in Codecov by Sentry. |
加一个 test case~ |
同步一下上游分支 |
已加,原测试案例写的有点问题,顺带修复了 |
等这个review无问题后,我这边再发起一个到4.x的PR |
…sign#42217) * fix: Popover display empty div when title and content is null * test: Popover add test * lint: remove useless block statement --------- Co-authored-by: MaHui <mahuiyoung@cmbchina.com> (cherry picked from commit 4271ff0)
* fix: Popover display empty div when title and content is null (#42217) * fix: Popover display empty div when title and content is null * test: Popover add test * lint: remove useless block statement --------- Co-authored-by: MaHui <mahuiyoung@cmbchina.com> (cherry picked from commit 4271ff0) * lint: fix Popover test lint error * lint: fix Popover test lint error * improvement: Popover overlay * lint: fix Popover test lint error * Update package.json --------- Co-authored-by: MaHui <mahuiyoung@cmbchina.com> Co-authored-by: afc163 <afc163@gmail.com>
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
fix #42216
💡 Background and solution
📝 Changelog
☑️ Self-Check before Merge
🚀 Summary
🤖 Generated by Copilot at eab7c90
Simplify
Popover
component logic and rendering. Remove redundanttitle
andcontent
props fromOverlayProps
and renderOverlay
only when it has content.🔍 Walkthrough
🤖 Generated by Copilot at eab7c90
title
andcontent
inOverlayProps
interface (link)Overlay
component inPopover
component based ontitle
orcontent
(link)