Skip to content

fix(animation): Do not remove opacity for outgoing element - #17422

Merged
liamdebeasi merged 19 commits into
masterfrom
fix-animation-flicker
Mar 4, 2019
Merged

liamdebeasi merged 19 commits into
masterfrom
fix-animation-flicker

Conversation

@liamdebeasi

@liamdebeasi liamdebeasi commented Feb 7, 2019 •

Copy link
Copy Markdown
Contributor

Short description of what this resolves:

Fixes an issue where opacity is removed on an outgoing element right before it is removed from the DOM.

This only appears in Angular applications, but due to the way the lifecycles work there I think it may be best to just not bother removing the opacity (since the element is going to be trashed anyways).

This change is only for iOS (and desktop Safari in responsive design mode), and I did not notice any adverse effects when testing on the conference app as well as using vanilla ionic components.

Changes proposed in this pull request:

  • Remove true for outgoing animations, setting clearProperyAfterTransition to false

Ionic Version:

Fixes: #16988

@ionitron-bot ionitron-bot Bot added the package: core @ionic/core package label Feb 7, 2019
@liamdebeasi
liamdebeasi requested review from brandyscarney and removed request for manucorporat February 14, 2019 21:15
@brandyscarney

Copy link
Copy Markdown
Member

How can I reproduce this? I tried using the conference app in Safari but I don't see it.

@liamdebeasi

Copy link
Copy Markdown
Contributor Author

@brandyscarney If you navigate to a page and hit the back button, you should see the animation complete but then the header from the page you just navigated away from re-appear for a split second. Probably easiest to test on the latest master

@liamdebeasi

Copy link
Copy Markdown
Contributor Author

Also this repo shows it pretty well: https://github.com/lucaslevin/trainer (person who created the issue posted it)

@brandyscarney

Copy link
Copy Markdown
Member

@liamdebeasi Which test on master? I tried on the nav/basic one in Safari and didn't see it.

@liamdebeasi

Copy link
Copy Markdown
Contributor Author

Ah sorry, this issue only shows up in Angular applications. (despite the fix being in core)

@brandyscarney

brandyscarney commented Mar 4, 2019 •

Copy link
Copy Markdown
Member

I was able to reproduce this and confirm the fix in the test-app in the angular/test/ directory using the tabs test. Looks good to me. 👍

@liamdebeasi
liamdebeasi merged commit ad20bd6 into master Mar 4, 2019
@brandyscarney
brandyscarney deleted the fix-animation-flicker branch March 4, 2019 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: core @ionic/core package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants