You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's apparently okay, from vendors' perspective, for this not to work with pushState(). You can find some workarounds too at whatwg/html#639. Using the regular <a> tag for this seems fine too
Reproduction
https://stackblitz.com/edit/vue-router-2076
Steps to reproduce the bug
The
CartAside
component has CSS styles based on the:target
pseudoclass. It is triggered by the links on the page.Same with the close links after the overlay.
Expected behavior
When using the
RouterLink
with an id (e.g.#cart
), the:target
pseudoclass styles should be triggeredActual behavior
The
:target
styles are ignored.Additional information
As a workaround, using
<a>
tags works fine 👍🏻Related issue: nuxt/nuxt#24415
The text was updated successfully, but these errors were encountered: