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

nutui-react-taro,开启样式按需加载以后,Toast组件存在滚动穿透问题,100%复现 #2759

Open
iSemmering opened this issue Nov 15, 2024 · 0 comments

Comments

@iSemmering
Copy link

NutUI React 包名

@nutui/nutui-react-taro

NutUI React 版本号

2.7.0

平台

weapp

重现链接

https://codesandbox.io/p/devbox/nutui-react-2x-demo-fg4vxd

重现步骤

开启样式按需加载以后,Toast组件即使设置了lockScroll属性,依然会有滚动穿透问题。
原因是Toast组件的className中的nut-overlay样式来自Overlay组件,由于没有引入Overlay组件,导致nut-overlay没有加载样式,所以导致了滚动穿透

期望的结果是什么?

阻止滚动穿透

实际的结果是什么?

未能阻止滚动穿透

环境信息

No response

其他补充信息

No response

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

1 participant