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

当演示结束后,没有移除对html元素添加的overflow属性 #34

Open
melon95 opened this issue Aug 4, 2022 · 4 comments
Open

Comments

@melon95
Copy link

melon95 commented Aug 4, 2022

byte-guide: 1.0.7
react: 17.0.2

image

这会导致页面不能滚动

我目前的解决方案:

onClose={() => {
  document.documentElement.style.overflow = 'auto'
}}
@melon95
Copy link
Author

melon95 commented Aug 4, 2022

image

看了下源码是realDocument重新赋值了,重新触发了
image

而此时的html上已经添加了overflow: hidden

@JarvisArt
Copy link

有点奇葩,结束后布局都乱了,还有 localKey不应该必填

@xiao-js
Copy link

xiao-js commented Dec 4, 2022

简直了,这么严重bug,还不解决

@xiao-js
Copy link

xiao-js commented Dec 4, 2022

还挂个字节的名号,这个组件有点垃圾啊

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

No branches or pull requests

3 participants