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

this.sview is null during component unmounting. #21

Open
shay-te opened this issue Nov 28, 2021 · 1 comment
Open

this.sview is null during component unmounting. #21

shay-te opened this issue Nov 28, 2021 · 1 comment

Comments

@shay-te
Copy link

shay-te commented Nov 28, 2021

while un-mounting the component ScrollPicker. the function scrollToIndex is called when this.sview is not set.
causing an error.

@kjossendal
Copy link

Seeing this too. In the meantime I've patched it with patch-package and added optional chaining in the two places that ref is accessed.

this.sview?.scrollTo()

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

2 participants