-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
RouterLink isActive slot not true when it should be #1552
Comments
This is intended. See https://router.vuejs.org/guide/migration/index.html#removal-of-the-exact-prop-in-router-link I think this could be added somewhere else on docs. Maybe when we talk about active class or maybe in extending router link section |
Ah, I missed that in the migration guide. If I read the RFC correctly, to get this behavior like it was in Vue Router 3, I would have to check manually if the current URL starts with the path of the router link? |
Version
4.1.5
Reproduction link
jsfiddle.net/16nudxt0/
Steps to reproduce
In the jsfiddle, click on "bar".
What is expected?
I would expect the bool values after "foo" to show "true, false", because
/foo/bar
should indicate that/foo
is active (but not exact).What is actually happening?
The "foo" link says isActive is false.
The text was updated successfully, but these errors were encountered: