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

Error when using content.scrollTo: "Cannot read property 'scrollTop' of null" #31

Open
ShadTK opened this issue Aug 7, 2019 · 0 comments

Comments

@ShadTK
Copy link

ShadTK commented Aug 7, 2019

Hello

I have a situation where I need to scrollTo a certain element of the screen, while keeping sticky headers so the user can keep track of where he is on the list

However, when I invoke content.scrollTo(scrollOffsetX, scrollOffsetY, Time), I get error "Cannot read property 'scrollTop' of null"

Full Error:

TypeError: Cannot read property 'scrollTop' of null at onScroll (http://localhost:8100/build/vendor.js:149155:35) at SafeSubscriber.schedulerFn [as _next] (http://localhost:8100/build/vendor.js:4005:36) at SafeSubscriber.__tryOrUnsub (http://localhost:8100/build/vendor.js:49792:16) at SafeSubscriber.next (http://localhost:8100/build/vendor.js:49739:22) at Subscriber._next (http://localhost:8100/build/vendor.js:49679:26) at Subscriber.next (http://localhost:8100/build/vendor.js:49643:18) at EventEmitterProxy.Subject.next (http://localhost:8100/build/vendor.js:68486:25) at EventEmitterProxy.EventEmitter.emit (http://localhost:8100/build/vendor.js:3979:76) at ScrollView.scroll.onScrollStart (http://localhost:8100/build/vendor.js:50468:34) at ScrollView.setScrolling (http://localhost:8100/build/vendor.js:93544:40)

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