-
Notifications
You must be signed in to change notification settings - Fork 162
LinkContainer is setting active class twice and active class not getting removed on brand link click #243
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
I'm seeing the same behaviour, any progress on this? |
@nickboucart No I am still not able to find any solution for this. |
Facing the exact same problem. Unfortunate that the class |
For the time being I switched back to NavLink (react-router-dom)
May be it can help someone. |
Note: @jainvizz's solution works only when the |
Closing this one as a duplicate of #242. |
I am using react bootstrap with react-router to implement nav bar functionality. Below I am providing the code for the same.
Routes
Nav Links
Everything is working but I am getting one weird issue, when I select a menu item it is getting selected but when I click on brand link it is selecting Home page which is correct but not de-selecting already selected menu.
I created the code sandbox for the same.
https://codesandbox.io/s/l4978989m9
Can any one please help me out with this.
Thanks,
Rahul
The text was updated successfully, but these errors were encountered: