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

Drawer 第二次打开时 maskStyle 样式被清除 #2407

Closed
1 task done
PanStar opened this issue Jun 11, 2020 · 2 comments
Closed
1 task done

Drawer 第二次打开时 maskStyle 样式被清除 #2407

PanStar opened this issue Jun 11, 2020 · 2 comments
Labels

Comments

@PanStar
Copy link
Contributor

PanStar commented Jun 11, 2020

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.6.2

Environment

Chrome 81.0.4044.92

Reproduction link

Edit on CodeSandbox

Steps to reproduce

https://codesandbox.io/s/antdv-drawer-maskstyle-mj2j2

第一次打开,样式正常
第二次打开,遮罩样式中的 left 和 width 被清除了

What is expected?

It's normal when depend by ant-design-vue@1.6.2

What is actually happening?

It is not work when depend by ant-design-vue@1.6.2.
But, it's normal in ant-design-vue@1.4.12.

@ununian
Copy link
Contributor

ununian commented Jun 12, 2020

我试了下是1.5出来的bug
应该是下面这个代码的问题

if (!open && this.getCurrentDrawerSome()) {
document.body.style.overflowX = '';
if (this.maskDom) {
this.maskDom.style.left = '';
this.maskDom.style.width = '';
}
}

我不是很清楚这段代码的作用
@tangjinzhou

@github-actions
Copy link

github-actions bot commented Jul 2, 2021

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants