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

[Bug Report] Can't remove body's class: el-popup-parent--hidden while using messageBox twice #11341

Closed
VanJunming opened this issue May 25, 2018 · 4 comments

Comments

@VanJunming
Copy link

Element UI version

2.3.9

OS/Browsers version

MacOS chrome 66.0.3359.181

Vue version

2.5.13

Reproduction Link

https://jsfiddle.net/mmx38qxw/1962/

Steps to reproduce

1.Using this.$confirm() to alert a messageBox (set the lockScroll as true)
2.User click the confirm/cancel button , receive promise callback
3.Then use another this.$confirm() to alert an other messageBox (set the lockScroll as true)
4.close the last messageBox, the body can't scroll. Find that the body still has a class: el-popup-parent--hidden, it's style is "overflow: hidden"
5.remove the class : el-popup-parent--hidden , the body can scroll.

What is Expected?

need to scroll the body while using the messageBox twice

What is actually happening?

can't scroll

@VanJunming
Copy link
Author

I use setTimeout to avoid this bug

@leslieSie
Copy link

show me you code

@leslieSie
Copy link

@VanFangbo

@VanJunming
Copy link
Author

@leslieSie 代码是公司项目的不好透露。看这个吧:https://jsfiddle.net/mmx38qxw/1962/ 。我也是类似于这么使用的。而且这个代码也出了同样的问题

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

No branches or pull requests

4 participants