@ethlete/core 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1061,14 +1061,16 @@ class AnimatableDirective {
1061
1061
  this._totalActiveAnimationCount$.next(this._totalActiveAnimationCount$.value - this._hostActiveAnimationCount$.value);
1062
1062
  this._hostActiveAnimationCount$.next(0);
1063
1063
  merge(fromEvent(el, 'animationstart'), fromEvent(el, 'transitionstart'))
1064
- .pipe(tap(() => {
1064
+ .pipe(filter((e) => e.target === el), // skip events from children
1065
+ tap(() => {
1065
1066
  const count = this._hostActiveAnimationCount$.value + 1;
1066
1067
  this._hostActiveAnimationCount$.next(count);
1067
1068
  this._totalActiveAnimationCount$.next(count);
1068
1069
  }), takeUntil(this._destroy$), takeUntil(this._animatedElement$.pipe(skip(1))))
1069
1070
  .subscribe();
1070
1071
  merge(fromEvent(el, 'animationend'), fromEvent(el, 'animationcancel'), fromEvent(el, 'transitionend'), fromEvent(el, 'transitioncancel'))
1071
- .pipe(tap(() => {
1072
+ .pipe(filter((e) => e.target === el), // skip events from children
1073
+ tap(() => {
1072
1074
  const count = this._hostActiveAnimationCount$.value - 1;
1073
1075
  this._hostActiveAnimationCount$.next(count);
1074
1076
  this._totalActiveAnimationCount$.next(count);