You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[sidenav] can't close until opening animation is complete #6376
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.
@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?
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.
Activity
mmalerba commentedon Aug 30, 2017
@crisbeto seems like this may have been a regression from one of your PRs
crisbeto commentedon Aug 30, 2017
It was an intentional change (there's an internal
_isAnimatingflag 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.willshowell commentedon Aug 30, 2017
@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?
crisbeto commentedon Aug 30, 2017
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,openandclosewere left in since they were a part of the public API.crisbeto commentedon Sep 2, 2017
Got some time to look into this. It seems like #5743 isn't an issue for the sidenav. I'll remove the
_isAnimatingguards.fix(drawer): unable to toggle while drawer is animating
fix(drawer): unable to toggle while drawer is animating
fix(drawer): unable to toggle while drawer is animating
fix(drawer): unable to toggle while drawer is animating
fix(drawer): unable to toggle while drawer is animating (#6810)
angular-automatic-lock-bot commentedon Sep 7, 2019
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.