This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
interimElement: finish animation of previous element #8624
Closed
Description
The $$interimElement
factory currently only supports single interimElements
at the same time.
This is intentionally, but it doesn't work properly for some components.
- For example, if you quickly open some toasts, the first toasts will overlay each other
(See Toasts overlap #4822, $mdToast increases watchers but does not remove them if multiple toasts are displayed within a digest. #5193)
This is caused by the $$interimElement
's item stack.
Once a second interim element is opening, we cancel the previous interim element and show the new one after the animation has started
This is not correct, because we should wait for the animation to be finished