-
Notifications
You must be signed in to change notification settings - Fork 777
关于吸顶Sticky错误 Cannot read property 'bottom' of null #239
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
Comments
This comment has been minimized.
This comment has been minimized.
为什么会出现这个问题?
解决办法
留在后面至此,此问题就解决了,本问题仅在部分页面会出现,都是因为生命周期和依赖相关的问题,当然也有其他的处理方式,以后再进行补充,若后期能通过 |
uview 1.8.4 我这里今天还是重现了, 但是跟上面的情况还有点不同就是我有一个组件两个页面都引用到的了,如果一个页面只有一个的话 确实就上面的法子就可以解决了 但问题出现在了 两个页面共有同一个组件,这个组件也用到了吸顶。 |
我现在的处理法子就是 通过父组件传递参数来控制 是否开启 吸顶操作 |
我的解决方案:
|
我的解决方案: deactivated(){ |
这样会在切回这个页面的时候失去监听,我的做法 |
吸顶Sticky 在H5端会在console中进行错误提示 Cannot read property 'bottom' of null,直接访问官网的实例也会提示相同错误

The text was updated successfully, but these errors were encountered: