fix(scroll): prevent 'cannot read from undefined' exception#4565
fix(scroll): prevent 'cannot read from undefined' exception#4565mlynch merged 1 commit intoionic-team:masterfrom
Conversation
|
Do you have an example of some markup where you'll get this error? Your change just adds a double check to make sure there is scroll view, but its not clear why that wouldn't be covered by the original |
|
I'm sorry. But I don't have a specific snippet that generates this error. I get it in Android 6.0 with chromium 44, using JS Scrolling at the startup. When I switched to native none of my test devices get the error. I've tried to read the code on |
|
+1 |
|
@igor-slotin @audotto @iltaen @bambriy @GulinSS do you have some code example to share with us? |
fix(scroll): prevent 'cannot read from undefined' exception
|
Thanks, seems like a harmless check to add |
Sometimes, I don't know why yet,
scrollViewis undefined and this line rises an Error. This commit fix this problem, but don't fix what makes thescrollViewundefined.