ant-design-vue
ant-design-vue copied to clipboard
Modal组件,在关闭时会出现两次关闭动画
- [x] I have searched the issues of this repository and believe that this is not a duplicate.
Version
4.0.1
Environment
官方网站示例——“https://www.antdv.com/components/modal-cn”
Reproduction link
https://www.antdv.com/components/modal-cn
Steps to reproduce
点击confirm或其他按钮,点击确认或取消,会出现,非必现
What is expected?
正常关闭modal
What is actually happening?
偶发性出现两次关闭动画
你这个好像没有办法复现哦 @YYDee-0920
非常抱歉这么久才回复您,我录制了一个gif,但在git上上传未成功,现在邮箱发您,您看一下,能否看清楚,当我点击confirm的取消时会出现。 我使用的是edge浏览器版本 117.0.2045.43 (正式版本) (64 位)
------------------ 原始邮件 ------------------ 发件人: "vueComponent/ant-design-vue" @.>; 发送时间: 2023年9月28日(星期四) 下午3:48 @.>; @.@.>; 主题: Re: [vueComponent/ant-design-vue] Modal组件,在关闭时会出现两次关闭动画 (Issue #6996)
你这个好像没有办法复现哦 @YYDee-0920
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>
确实有这种情况,我有时候也会碰到关闭动画触发2次的情况
我也有碰到这种情况,偶发
升到最新版本的4.0.6试下看看呢
求助!打包后modal不能正常显示怎么办?
升到最新版本的4.0.6试下看看呢
最新版本依旧会闪两次,使用全屏Modal后似乎更加明显了
https://github.com/vueComponent/ant-design-vue/assets/69885396/2f4ddba4-ec45-4cc3-b9ba-80d12e831149
我也遇到这个问题了 怀疑跟 model 内的 dom 元素销毁时机有关系 弹窗内使用复杂组件的时候 必定会复现此问题 当我在关闭前 把复杂组件提前销毁掉就不会有这个问题出现
https://github.com/vueComponent/ant-design-vue/assets/22365181/62bae6c1-242c-4abe-90e5-173ee62fd4f2
同样的情况,我是通过给Modal 加上transitionName=""属性去掉动画后暂时解决了。
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days