We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When a route is active, RouterLink currently does not add router-link-active class when a custom class attribute is provided.
router-link-active
Using JSX
<Link class="nav-item" to="route" />
renders
<a class="nav-item" href="/route" />
expected would be
<a class="nav-item router-link-active" href="/route" />
The text was updated successfully, but these errors were encountered:
Simply moving the the ...attrs spread to the top seems to fix this issue.
...attrs
return h( 'a', { ...attrs, class: elClass.value, onClick: link.navigate, href: link.href, }, slots.default && slots.default(link) )
#134
Sorry, something went wrong.
392c295
No branches or pull requests
When a route is active, RouterLink currently does not add
router-link-active
class when a custom class attribute is provided.Using JSX
renders
expected would be
The text was updated successfully, but these errors were encountered: