-
-
Notifications
You must be signed in to change notification settings - Fork 241
Angular 9,10 NSRouterLinkActive does not set CSS class #2224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks @denlysenko we’ll get this updated and publish a patch this afternoon. |
@denlysenko published in 10.0.1 - let us know if you have further issue; thanks again for report. |
@NathanWalker After your fix CSS class is being added, but it's added to the link, which is not active. nativescript-angular/nativescript-angular/router/ns-router-link-active.ts Lines 108 to 112 in 23cf9dc
|
Ah @denlysenko thanks, do you wanna try to submit a PR? |
ok |
After upgrading Angular from 8 to 10,
nsRouterLinkActive
directive stopped adding CSS class on element. Seems like the reason is in thisthis.renderer.setStyle
(should bethis.renderer.addClass
) call herenativescript-angular/nativescript-angular/router/ns-router-link-active.ts
Line 107 in 51bd639
The text was updated successfully, but these errors were encountered: