Skip to content

[sidenav] can't close until opening animation is complete #6376

Closed

Description

@willshowell

Bug, feature request, or proposal:

Regression

Expected

Sidenav can still be closed while animating open

Current

Sidenav must wait until animation is complete to trigger new actions

Reproduction

Working with beta.8: https://plnkr.co/edit/Ucv13OC4Zsl55CXRANK3?p=preview
Failing with latest: https://plnkr.co/edit/pCWLJ2ThQrKgGXI2Q9cn?p=preview

Other

Presumably due to #4959 or #6189

Activity

  1. mmalerba commented on Aug 30, 2017

    @mmalerba
    Contributor

    @crisbeto seems like this may have been a regression from one of your PRs

  2. added
    P3
    on Aug 30, 2017
  3. crisbeto commented on Aug 30, 2017

    @crisbeto
    Member

    It was an intentional change (there's an internal _isAnimating flag that is checked). I did it primarily to ensure that you always get back the correct animation promise and to guard against cases like #5743 and #4932.

  4. willshowell commented on Aug 30, 2017

    @willshowell
    ContributorAuthor

    @crisbeto are you aware of any open issues in core for #5743 and #4932? If I understand correctly, the current behavior is necessary until those are sorted out?

    Further, could you explain this note?
    https://github.com/angular/material2/blob/70bd5fc20e7fe6b1749b334d29e842cb3681609d/src/lib/sidenav/drawer.ts#L252-L254

    Is that to say that the promise return value will become obsolete, but is there to match the before-animations behavior?

  5. crisbeto commented on Aug 30, 2017

    @crisbeto
    Member

    Yes, the previous approach was passing promises around to coordinate the animation, but I removed all of them in #4959 since they weren't necessary anymore. The ones for toggle, open and close were left in since they were a part of the public API.

  6. crisbeto commented on Sep 2, 2017

    @crisbeto
    Member

    Got some time to look into this. It seems like #5743 isn't an issue for the sidenav. I'll remove the _isAnimating guards.

  7. added a commit that references this issue on Sep 2, 2017
    c1a76b0
  8. added 3 commits that reference this issue on Sep 29, 2017
    a099082
    1695e74
    f3d7a67
  9. added a commit that references this issue on Oct 6, 2017
    085827f
  10. angular-automatic-lock-bot commented on Sep 7, 2019

    @angular-automatic-lock-bot

    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.

  11. locked and limited conversation to collaborators on Sep 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

P3

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions