Skip to content

animations: toggling between two states doesn't always animate #15310

Description

@crisbeto

I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior
When toggling between two animation states, the "off" state doesn't animate away. For reference:
a

Expected behavior
The animation should work both ways.

Minimal reproduction of the problem with instructions
The issue can be seen in the Material select: https://github.com/angular/material2/blob/master/src/lib/select/select-animations.ts#L22

Please tell us about your environment:
Windows, NPM

  • Angular version: 2.0.X
    Angular 4-rc.5, as well as the latest master build.

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
    Chrome 57

  • Language: [all | TypeScript X.X | ES6/7 | ES5]
    TypeScript 2.1.

CC @matsko

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: animationslegacy animations package only. Otherwise use area: core.regressionIndicates than the issue relates to something that worked in a previous versiontype: bug/fix

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions