diff --git a/src/transition.js b/src/transition.js index b654381..f8997d6 100644 --- a/src/transition.js +++ b/src/transition.js @@ -79,5 +79,13 @@ function nextFrame() { } function afterTransition(element) { - return Promise.all(element.getAnimations().map(animation => animation.finished)) + return Promise.all( + element.getAnimations().map(animation => { + return animation.finished.catch(e => { + if (e.name !== 'AbortError') { + throw e + } + }) + }), + ) }