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

退出全屏时会删除body的class属性 #29

Closed
web-wangchengfei opened this issue Dec 18, 2019 · 1 comment
Closed

退出全屏时会删除body的class属性 #29

web-wangchengfei opened this issue Dec 18, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@web-wangchengfei
Copy link

vue-smart-widget/src/packages/SmartWidget.vue文件:
document.body.removeAttribute('class', 'no-overflow')

removeAttribute使用错误,removeAttribute() 是从指定的元素中删除一个属性。造成body的class属性被删除,其它class类不生效。

@xiaoluoboding
Copy link
Owner

get

@xiaoluoboding xiaoluoboding added the bug Something isn't working label Jan 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants