pull/11062/head
Dominic Gannaway 8 months ago
parent 49b6f51489
commit aeef09ed25

@ -311,7 +311,9 @@ function animate(element, options, counterpart, t2, callback) {
if (animation.startTime !== null && animation.currentTime !== null) { if (animation.startTime !== null && animation.currentTime !== null) {
throw e; throw e;
} }
callback?.(); if (!element.isConnected) {
callback?.();
}
}); });
} else { } else {
// Timer // Timer

Loading…
Cancel
Save