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

Animations: animating from current style on state change regression #17170

Closed
dharders opened this issue Jun 2, 2017 · 13 comments · Fixed by #18172
Closed

Animations: animating from current style on state change regression #17170

dharders opened this issue Jun 2, 2017 · 13 comments · Fixed by #18172
Assignees
Labels
area: animations regression Indicates than the issue relates to something that worked in a previous version

Comments

@dharders
Copy link

dharders commented Jun 2, 2017

I'm submitting a ...

[x] bug report
[ ] feature request
[ ] support request 

Current behavior

Changing animation state, mid-flight of another animation, causes the new animation to play from the beginning and not from the current mid-flight style.

Expected behavior

On state change, animate from currently applied styles/position if we haven't explicitly set a starting style for the transition.

Minimal reproduction of the problem with instructions

Plunker with instructions (also see working behavior in 4.2.0-beta.1)
https://plnkr.co/edit/yLUWhK?p=preview

What is the motivation / use case for changing the behavior?

Better user experience, smoother animations, restore behavior of 4.2.0-beta.1

Please tell us about your environment:

Windows 7, code, yarn, ng cli

  • Angular version: 4.2.0-rc.2
  • Browser:

Tested in Chrome Desktop 58.0.3029.110 (64-bit), iOS Safari 10.2.1

  • Language: Typescript 2.3.4

  • Node (for AoT issues): node --version =

/cc @matsko

@matsko matsko self-assigned this Jun 5, 2017
@matsko matsko added area: animations regression Indicates than the issue relates to something that worked in a previous version labels Jun 5, 2017
@dharders
Copy link
Author

Issue still present on latest 4.2.2 release.

Updated plunker: https://plnkr.co/edit/yLUWhK?p=preview

/cc @matsko

@dharders
Copy link
Author

Updated plunker to 4.2.3 release: https://plnkr.co/edit/yLUWhK?p=preview

@dharders
Copy link
Author

Updated plunker to 4.2.4 release: https://plnkr.co/edit/yLUWhK?p=preview

/ @matsko

@dharders
Copy link
Author

Is this regression likely to be fixed soon? I'd prefer not to have to change our large code base to work around it.

It was marked severity5: regression, but there has been several releases since. I assumed regressions were a priority for a stable branch. Don't get me wrong, I love Angular and the new Animations module and understand bugs can easily creep in, but confidence in the turn around time of fixes for future production code is worrisome for management.

Issue still present on latest 4.2.5 release.

Updated plunker: https://plnkr.co/edit/yLUWhK?p=preview

/cc @matsko

@matsko
Copy link
Contributor

matsko commented Jun 30, 2017

Yes I am working towards it. It has been in the way of few other regressions that just landed in 4.2.5.
I think that once this one lands then it may fix most of the problem #17856. Once that goes in (I think tomorrow), then you should be able use angular@head and see if it solves the problem.

@dharders
Copy link
Author

Updated plunker: https://plnkr.co/edit/yLUWhK?p=preview to latest 4.3.0-rc.0 release. Issue still present

/cc @matsko

@dharders
Copy link
Author

Updated plunker to latest 4.3.0 release. Regression still present

@matsko
Copy link
Contributor

matsko commented Jul 17, 2017

Alright @dharders I believe I fixed the issue here in this PR: #18172

@matsko
Copy link
Contributor

matsko commented Jul 17, 2017

Thank you for being persistent with this.

@dharders
Copy link
Author

Thanks @matsko!

Is there any way to test your PR from the above plunker ? (i.e. does Travis CI generate a build link etc) or do I have to wait until it is merged then link to nightly @angular/animations-builds ?

Thanks again, appreciate all your work !

matsko added a commit to matsko/angular that referenced this issue Jul 18, 2017
matsko added a commit to matsko/angular that referenced this issue Jul 18, 2017
@matsko
Copy link
Contributor

matsko commented Jul 18, 2017

I pushed a branch into the builds code so you can test against it:

Use (inside of package.json):

"@angular/animations": "git://github.com/angular/animations-builds.git#animation_issue_17170",
"@angular/platform-browser": "git://github.com/angular/platform-browser-builds.git#animation_issue_17170",

@dharders
Copy link
Author

Works perfect. Thanks again!

asnowwolf pushed a commit to asnowwolf/angular that referenced this issue Aug 11, 2017
juleskremer pushed a commit to juleskremer/angular that referenced this issue Aug 26, 2017
juleskremer pushed a commit to juleskremer/angular that referenced this issue Aug 28, 2017
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: animations regression Indicates than the issue relates to something that worked in a previous version
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants