This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
toast: element.remove() does not return promise #10379
Labels
has: Pull Request
A PR has been created to address this issue
P3: important
Important issues that really should be fixed when possible.
resolution: fixed
type: bug
Milestone
Actual Behavior:
What is the issue? *
toast throws error when hiding if rapidly executing show
the problem is the one-liner that handles that
return ((options.$destroy == true) ? element.remove() : $animate.leave(element)).then(...
What is the expected behavior?
do not throw the error
CodePen (or steps to reproduce the issue): *
CodePen Demo which shows your issue:
http://codepen.io/anon/pen/apaZMe
Details:
Angular Versions: *
Angular Version:
1.6.1Angular Material Version:
1.1.1 and 1.1.3Additional Information:
Browser Type: *
ChromeBrowser Version: *
55.0.2883.95OS: *
OSXStack Traces:
The text was updated successfully, but these errors were encountered: