-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
dropdown not work with routerLinkActive in the same component cause multiple onInit are called #1885
Comments
Thanks for note, I was not expecting ngOnInit run twice, can you check one thing: is ng on destroy is called in between? |
not, I checked this trying to make some cleanup without luck because it isn't called twice, the component doesn't get destroyed, (forgive my lack off knoledge) is like gets inspected again for changes. |
It seems to me that it is router activate issue, but I will provide a hack anyway |
thanks!
|
@jjlorenzo please create an issue in angular repo and link it here plunker with reproduced issue will be required |
Do you have a link to the issue on the angular repo? |
maybe this angular/angular#15925 or angular/angular#6782 |
sorry for not having time right now for more details, basically the
routerLinkActive
directive trigger a view update that calls again the dropdown onInit and this second run it isn't handled properly, I see duplicated dom and the events doesn't works, this only happens on router navigationcall 1
call 2
The text was updated successfully, but these errors were encountered: