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

Handle undefined item list ref #288

Merged
merged 1 commit into from
Dec 14, 2018
Merged

Conversation

justisb
Copy link
Contributor

@justisb justisb commented Dec 12, 2018

Currently onSwipeMove can sometimes be called before the itemsListRef is initialized, causing an "undefined is not an object" error when its style property is attempted to be set. This PR fixes the issue by simply checking that the ref exists before accessing it.

@leandrowd leandrowd merged commit 987c6c2 into leandrowd:master Dec 14, 2018
@leandrowd
Copy link
Owner

Thanks for your contribution! This will be released soon.

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

Successfully merging this pull request may close these issues.

2 participants