Skip to content

Commit

Permalink
fix(router): link active directive (#2227)
Browse files Browse the repository at this point in the history
  • Loading branch information
denlysenko authored Aug 19, 2020
1 parent 23cf9dc commit 5e165b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nativescript-angular/router/ns-router-link-active.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ export class NSRouterLinkActive implements OnChanges, OnDestroy, AfterContentIni
const isActiveLinks = this.reduceList(currentUrlTree, this.links);
this.classes.forEach((c) => {
if (isActiveLinks) {
this.renderer.removeClass(this.element.nativeElement, c);
} else {
this.renderer.addClass(this.element.nativeElement, c);
} else {
this.renderer.removeClass(this.element.nativeElement, c);
}
});
}
Expand Down

0 comments on commit 5e165b5

Please sign in to comment.