Skip to content
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

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

Closed
1 task done
Tdota2 opened this issue Sep 28, 2023 · 11 comments
Closed
1 task done

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

Tdota2 opened this issue Sep 28, 2023 · 11 comments
Labels

Comments

@Tdota2
Copy link

Tdota2 commented Sep 28, 2023

  • 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?

偶发性出现两次关闭动画

@DesignHhuang
Copy link
Contributor

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

@Tdota2
Copy link
Author

Tdota2 commented Oct 7, 2023 via email

@helloword2023
Copy link

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

@dadianzi
Copy link

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

@aibayanyu20
Copy link
Member

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

@cdl235
Copy link

cdl235 commented Oct 21, 2023

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

@Tdota2
Copy link
Author

Tdota2 commented Oct 31, 2023

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

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

20231102-134649.mp4

@a952543073
Copy link

a952543073 commented Nov 2, 2023

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

QQ20231102-155815-HD.mp4

@masicheng
Copy link

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

@jack-7788
Copy link

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

Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

9 participants