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: menu style broken in dropdown #19150
Conversation
Deploy preview for ant-design ready! Built with commit d077b51 |
ci 莫名其妙的挂了。 |
Codecov Report
@@ Coverage Diff @@
## master #19150 +/- ##
=======================================
Coverage 97.76% 97.76%
=======================================
Files 282 282
Lines 7622 7622
Branches 2143 2143
=======================================
Hits 7452 7452
Misses 170 170 Continue to review full report at Codecov.
|
|
||
## zh-CN | ||
|
||
此演示用于调试 Menu 完整样式。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里贴个 demo 用途吧,不然其他人到时候都不知道该看什么。比如:
此 demo 需要注意查看 Dropdown 下部分 Menu 的样式是否正常
#19150
/rebase |
2cfcf66
to
bf8dffc
Compare
@afc163 更新下 snapshot 就可以了 |
不行,dist 的 snapshot 和其他环境不一样。 |
); | ||
|
||
ReactDOM.render( | ||
<Dropdown overlay={menu} visible> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个默认 visible
的模式下有问题
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
加上 visible 会导致 snapshot 在 dist 模式下和其他模式不一致,非常奇怪。所有 trigger 组件都有这个问题。
cc @zombieJ
这里和本 PR 无关,我先把例子里的 visible 删了。
7f1b94f
to
6c3a677
Compare
6c3a677
to
9e960ae
Compare
🤔 This is a ...
🔗 Related issue link
close #19145
💡 Background and solution
to
📝 Changelog
☑️ Self Check before Merge
View rendered components/dropdown/demo/menu-full.md