This repository has been archived by the owner on Nov 12, 2024. It is now read-only.
[Bug] AnimationControls.finished promise stays pending if it's not immediately used #260
Labels
Bug
Bug report
1. Describe the bug
The AnimationControls.finished promise stays pending if it's not immediately used after creating the animation. If I await this promise after the animation has already finished, it will await forever, which is unlike the normal behavior of the "finished" promise in WAAPI.
2. IMPORTANT: Provide a CodeSandbox reproduction of the bug
https://codesandbox.io/p/devbox/motionone-bug-k37tnt?file=%2Fsrc%2Findex.mjs
3. Steps to reproduce
4. Expected behavior
Console should show all "Case 1 finished", "Case 2 finished" and "Case 3 finished".
The text was updated successfully, but these errors were encountered: