-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
modal modal bug, ant-modal-wrap style does not have display: none in the test server environment, causing the page to be unclickable #4565
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
Comments
123 |
遇到了同样的问题... |
同样的问题+1 |
watchEffect(() => { |
I have the same problem now.And it occurs only in the test environment!! |
When a page has Model elements more than two, there will still be the problem. watchEffect(() => {
const modelWrap: NodeList = document.querySelectorAll('.ant-modal-wrap');
if (!state.modelVisible && modelWrap.length) {
nextTick(() => {
modelWrap.forEach((el: HTMLElement) => {
el.style.display = 'none';
});
});
}
}); |
same problem +1 |
@laijinxian 你是怎么解决了么 |
问题解决了: |
这个issue为什么要关闭?bug修复了吗?2.2.0版本bug依然存在 |
遇到了同样的问题,应该在这里出现了问题 ant-design-vue/components/_util/transition.tsx Lines 17 to 109 in 6f8c75c
|
3.2版本了,这个bug依然存在 |
这个bug没人处理么? @laijinxian |
希望官方注意下,这是个大坑,本地环境,dev开发环境都没问题,就是test测试环境有这个bug, 害我查了大半天!!!!!我的目前是3.2版本 。 我的情况是用modal.confirm打开的弹框,无论是点击关闭,还是确定, 都会出现这个bug!! |
process.env.NODE_ENV === 'test' 被占用了,可以先换个环境变量打包测试环境的包,下个版本会改掉 |
我使用vite4就没有这问题了,使用vite3依然会出现这情况 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Version
2.2.6
Environment
服务器, 谷歌浏览器,
Reproduction link
https://2x.antdv.com/components/modal-cn
Steps to reproduce
随意弹出弹窗,关闭后; 最外层原素有个 类名为ant-modal-root 的节点, 他下面有个 ant-modal-wrap 节点, 正式环境下 ant-modal-wrap 他会有display: none 属性, 测试环境就缺少这个样式导致整个页面无法点击
What is expected?
和正式环境一样 模态弹窗关闭后 ant-modal-wrap 应该要有 display: none 属性
What is actually happening?
ant-modal-wrap 缺少 display: none 属性
The text was updated successfully, but these errors were encountered: