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

scroll-view: TypeError: Cannot read properties of null (reading 'scrollHeight' #4904

Open
gao-xiang opened this issue May 14, 2024 · 4 comments

Comments

@gao-xiang
Copy link

3.0.0-alpha-4010720240511003,scroll-view 有各种参数报错。

@Otto-J
Copy link
Member

Otto-J commented May 14, 2024

感谢反馈,你提到 vue3 的 scroll-view 运行有报错,可以补充案例和说明运行的平台吗,比如 android/ios/微信小程序还是 h5 ,补充更多信息,有助于定位和解决你的问题

@gao-xiang
Copy link
Author

是在H5发现的,回退的上一个版本没在出现,有时是 scrollTop 未设置的报错,

@Otto-J
Copy link
Member

Otto-J commented May 14, 2024

你可以提供一个复现工程吗,只包含 scroll-view 的,我测试运行 hbuilderx 和 cli 看到控制台是正常的

@gao-xiang
Copy link
Author

gao-xiang commented May 14, 2024

<scroll-view enable-back-to-top class="scroll-view" scroll-y> <slot /> </scroll-view>
只要有以上代码就会出现,刷新后没有错误提示,在页面切换时会出现报错。

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