Skip to content

Commit

Permalink
fix: only add the in class when we really want to reset animationg
Browse files Browse the repository at this point in the history
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
  • Loading branch information
megheaiulian authored and cristinecula committed Mar 16, 2021
1 parent f5b3eec commit 9cbabf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cosmoz-data-nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 9cbabf7

Please sign in to comment.