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

fullscreen loading 异步关闭的时候 body一直存在overflow:hidden #968

Closed
fashen007 opened this issue Nov 10, 2016 · 3 comments
Closed

Comments

@fashen007
Copy link

fashen007 commented Nov 10, 2016

ElementUI version

v1.0.0

OS/Browers version

Vue version

2.0.3

Reproduction Link

Steps to reproduce

image

// 自定义的一个事件
const that = this
that.fullscreenLoading = true;
        setTimeout(function () {
          // this.fullscreenLoading = true;
          that.fullscreenLoading = false; 
        }, 1000);

loading已经关闭但是
body还是会出现overflow:hidden

What is Expected?

What is actually happening?

@Leopoldthecoder
Copy link
Contributor

你这段代码应该是不能正常工作的:setTimeout 回调里的 this 并不是当前的 vm。另外在回调里把
fullscreenLoading 赋值为 true 是笔误?

请提供能重现问题的 demo。

@fashen007
Copy link
Author

@Leopoldthecoder 哦 那个this是手误
我忘了说一个条件就是我还结合了dialog一起用
demo
http://jsfiddle.net/v5hvh1tp/

@Leopoldthecoder
Copy link
Contributor

Fixed in #986

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

2 participants