-
-
Notifications
You must be signed in to change notification settings - Fork 50.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
tabs标签页切换时被隐藏的为什么不用display=none #6237
Comments
因为有动画效果。
感觉不合理。 |
@afc163 |
|
@afc163 |
@afc163 或者我们可以把不展示的 TabPane 设置为 @iceking112 测试下你的场景这样能否解决问题,可以的话来个 PR |
d6da305 已经足够了。 |
visibility: hidden; |
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
Version
2.10.2
Environment
window 10,chrome 58
Reproduction link
https://ant.design/components/tabs-cn/
Steps to reproduce
如果tabpanel中的元素存在 position: fixed 的情况,当切换标签页后该元素实际上并没有被隐藏,在当前tab页面仍然可以点击到。
What is expected?
切换标签页后,其他标签页彻底隐藏
What is actually happening?
其他标签页中的内容仍然能被点击
The text was updated successfully, but these errors were encountered: