From 81210a3a279db74a38db1fbce260b9d0bbc4e5c8 Mon Sep 17 00:00:00 2001 From: Arthur Goldsmith Date: Wed, 14 Oct 2020 18:26:14 -0700 Subject: [PATCH] Filters out ember-animated classes on sprite position cache --- addon/-private/sprite.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/addon/-private/sprite.ts b/addon/-private/sprite.ts index 2c1bb7d92..28ce5193f 100644 --- a/addon/-private/sprite.ts +++ b/addon/-private/sprite.ts @@ -400,7 +400,8 @@ export default class Sprite { bottom: style.bottom, right: style.right, transform: style.transform, - classList: Array.from(this.element.classList), + classList: Array.from(this.element.classList) + .filter(c => !c.includes('ember-animated-')), }; } } @@ -735,7 +736,7 @@ export default class Sprite { warn( `Probable bug in ember-animated: an interrupted sprite tried to unlock itself. This is usually caused by a direct child of an animated component also being an - animated component. To fix it, wrap the child in another DOM element. + animated component. To fix it, wrap the child in another DOM element. https://github.com/ember-animation/ember-animated/issues/178`, this.stillInFlight(), { id: 'ember-animated-sprite-unlock' },