-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
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
activeClassName not working #471
Comments
can you provide a test case somewhere? it works in the examples in this repo. |
Weird... Looks like it's not working only in one case. I don't have separated example but since it's in public project, you can take a look: router I will investigate it later. Maybe it's just a bug in my app. |
Perhaps |
tag is an object with |
I was confused by apparently different usage in |
yep, link have tags array(strings). |
it's in package but i'm not using it (waiting for 0.12.0 compatibility). Pure bootstrap there css there for now |
Could you by any chance have several copies of React loaded? This often leads to obscure bugs, although I'm not at all sure about this one. |
what do you mean? I'm requiring react when it's needed. Could it be problem? |
@mxaly Basically you need to check if there's no |
oh, will do, thanks! |
I'm pretty confident this is working as designed, let use know if you discover anything that you think we need to fix. |
@ryanflorence is there a way to set the activeClassName for the containing li ? its working fine so I didn't feel it was worth opening a new issue but say for bootstrap pills navigation, you set the active class on the li not the a, which means that by default the bootstrap active class won't work. there is this component which is supposed to do that but it seems it doesn't work as of react-router v1.0 |
using React 0.12.0 when navigating, class to selected link is not added.
The text was updated successfully, but these errors were encountered: