ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

Modal组件,在关闭时会出现两次关闭动画

Open Tdota2 opened this issue 2 years ago • 10 comments

  • [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或其他按钮,点击确认或取消,会出现,非必现 modal

What is expected?

正常关闭modal

What is actually happening?

偶发性出现两次关闭动画

Tdota2 avatar Sep 28 '23 06:09 Tdota2

你这个好像没有办法复现哦 @YYDee-0920

DesignHhuang avatar Sep 28 '23 07:09 DesignHhuang

非常抱歉这么久才回复您,我录制了一个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: @.***>

Tdota2 avatar Oct 07 '23 01:10 Tdota2

确实有这种情况,我有时候也会碰到关闭动画触发2次的情况

helloword2023 avatar Oct 11 '23 03:10 helloword2023

我也有碰到这种情况,偶发

dadianzi avatar Oct 14 '23 05:10 dadianzi

升到最新版本的4.0.6试下看看呢

aibayanyu20 avatar Oct 17 '23 23:10 aibayanyu20

求助!打包后modal不能正常显示怎么办?

cdl235 avatar Oct 21 '23 00:10 cdl235

升到最新版本的4.0.6试下看看呢

最新版本依旧会闪两次,使用全屏Modal后似乎更加明显了 20231031-154815

https://github.com/vueComponent/ant-design-vue/assets/69885396/2f4ddba4-ec45-4cc3-b9ba-80d12e831149

Tdota2 avatar Oct 31 '23 07:10 Tdota2

我也遇到这个问题了 怀疑跟 model 内的 dom 元素销毁时机有关系 弹窗内使用复杂组件的时候 必定会复现此问题 当我在关闭前 把复杂组件提前销毁掉就不会有这个问题出现

https://github.com/vueComponent/ant-design-vue/assets/22365181/62bae6c1-242c-4abe-90e5-173ee62fd4f2

a952543073 avatar Nov 02 '23 08:11 a952543073

同样的情况,我是通过给Modal 加上transitionName=""属性去掉动画后暂时解决了。

masicheng avatar Dec 25 '23 07:12 masicheng

Snipaste_2024-01-29_10-35-00 这样子是可以的

jack-7788 avatar Jan 29 '24 02:01 jack-7788

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

github-actions[bot] avatar Mar 30 '24 01:03 github-actions[bot]