mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
fix(animations): ensure all elements are cleaned up when calling .destroy() (#19654)
* fix race condition * remove zero
This commit is contained in:

committed by
Liam DeBeasi

parent
48539093bf
commit
d97e167f31
@ -128,8 +128,10 @@ export const createAnimation = (): Animation => {
|
||||
|
||||
webAnimations.length = 0;
|
||||
} else {
|
||||
elements.forEach(element => {
|
||||
const elementsArray = elements.slice();
|
||||
|
||||
raf(() => {
|
||||
elementsArray.forEach(element => {
|
||||
removeStyleProperty(element, 'animation-name');
|
||||
removeStyleProperty(element, 'animation-duration');
|
||||
removeStyleProperty(element, 'animation-timing-function');
|
||||
|
Reference in New Issue
Block a user