-
-
Notifications
You must be signed in to change notification settings - Fork 5k
.v-link-active seems to be added to routes that match a given pattern, sometimes incorrect #114
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
Yeah, that's a bug. |
BTW, can the class name handling be abstracted into a separate directive? I find myself wanting to highlight certain elements when a route is matched, but they're not links. |
@JosephSilber I'll keep that in mind, for now something like |
I found a workaround for this without custom code - attach v-link to the parent element too, and it will attach the active class without any hyperlink properties.
Correctly attaches |
@rrrhys |
Had the same issue until I added exact: true. Works great now |
Why do so much repeated work, just add a little css and change the li.active > a css to be applied on li > a.active. It works great with too much changes required repeatedly. |
I believe this is an issue, but could be incorrect. Given
v-link
s with pathsfoo
andfoobar
, whenfoobar
is visitedfoo
is still considered active.https://jsbin.com/zukinud/edit?html,css,js,output
The text was updated successfully, but these errors were encountered: