Why the menu closing animation has unhandled promise reject? #5638
Answered
by
asyncLiz
VietNguyenQuoc
asked this question in
Q&A
-
I don't know if it's a bug or some intended implementation. Diving into the material code, I see that it will reject a promise in several scenarios:
Can someone explain why the menu closing animation has to reject the promise in here and why the promise rejection is not handled in here? |
Beta Was this translation helpful? Give feedback.
Answered by
asyncLiz
Jun 7, 2024
Replies: 1 comment 5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
At a glance I don't think I see a reason for
animateClose()
on the menu to reject the promise. I think it can just resolve early instead of rejecting when there aren't elements or when animations are canceled.@e111077 do you agree? If so that should be a simple PR we can accept.