-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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 title 变化,同时 destroyOnClose 为 true,导致重复 mount 和 destroy #152
Comments
感谢回复 @tangjinzhou 。 请看 栗子 并按照操作走。 开始初始打开页面,默认打开弹窗,会出现两个 mount,Console截图: 然后取消关闭弹窗,会有两个destroy(这个是beforeDestroy hook打印的,所以顺序和destroy相反),console截图: 最后点击确定,应该是两个destroy,但是并不是,多了mount 和 destroy,看截图: 另外,更直观的可以看 这个栗子,直接点击打开和确定,然后看 Console。 |
下个版本修复,临时解决方案:close时不要更改title,或 title不要在 |
please update to 1.1.0 |
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
1.0.3
Environment
Win7/vue 2.5
Reproduction link
Steps to reproduce
1、点击取消关闭弹窗
2、点击ok按钮打开弹窗,再点击取消关闭弹窗
3、看console日志
What is expected?
不会重新执行mount和destroy
What is actually happening?
重复Mount以及destroy。
The text was updated successfully, but these errors were encountered: