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

fix(content): check for scroll element #10374

Merged
merged 4 commits into from
Feb 13, 2017
Merged

fix(content): check for scroll element #10374

merged 4 commits into from
Feb 13, 2017

Conversation

jgw96
Copy link
Contributor

@jgw96 jgw96 commented Feb 9, 2017

Short description of what this resolves:

This fixes an issue where the content class may try to change a style on a scroll element after that scroll element has been destroyed. One way this could be reproduced (which i have added an e2e test for here) is to start a refresher, and then setRoot, which destroys the scroll element that content would have been trying to tweak.

Changes proposed in this pull request:

  • Add an e2e test for refresher that can be used to test for this issue.
  • Add a check to make sure that a scroll element exists before trying to change its style

Ionic Version: 2.x

Fixes: #10220

@jgw96 jgw96 added this to the 2.1.0 milestone Feb 9, 2017
@jgw96 jgw96 requested a review from brandyscarney February 9, 2017 19:19
@jgw96 jgw96 added the v2 label Feb 9, 2017
@jgw96 jgw96 self-assigned this Feb 9, 2017
@brandyscarney brandyscarney merged commit 6a0c92c into master Feb 13, 2017
@brandyscarney
Copy link
Member

LGTM 👍

@brandyscarney brandyscarney deleted the refresher_test branch February 13, 2017 17: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

Successfully merging this pull request may close these issues.

2 participants