From 9cbabf730919db5cc46f37e4eeee794dc1c34ddc Mon Sep 17 00:00:00 2001 From: Meghea Iulian Date: Tue, 16 Mar 2021 12:17:17 +0200 Subject: [PATCH] fix: only add the in class when we really want to reset animationg When we don't have a `prev` we do not really have an animation so we shouldn't reset the animation by adding the `in` class --- cosmoz-data-nav.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cosmoz-data-nav.js b/cosmoz-data-nav.js index 6901f57..380307e 100644 --- a/cosmoz-data-nav.js +++ b/cosmoz-data-nav.js @@ -601,7 +601,7 @@ class CosmozDataNav extends hauntedPolymer('haunted', useDataNav)(PolymerElement this._elements.forEach(el => el.classList.remove('selected')); } - classes.toggle('in', !!this.animating); + classes.toggle('in', animating); classes.add('selected'); if (!animating) {