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
Adding a page with an h1, an id, and a style that colors it yellow when it's the target (h1:target)
Adding a link to that page
Expected Behavior
Linking to a page with a hash should scroll to the hash and set the element matching the hash's ID as the :target (this is how the selector is documented to work).
Actual Behavior
On navigation, the element is not highlighted. If you refresh the page after navigating, you get the correct highlighting.
The text was updated successfully, but these errors were encountered:
What version of Remix are you using?
1.19.3
Are all your remix dependencies & dev-dependencies using the same version?
Steps to Reproduce
Here's a minimal testcase repo: https://github.com/tmcw/remix-hash-target-testcase
That's
h1:target
)Expected Behavior
Linking to a page with a hash should scroll to the hash and set the element matching the hash's ID as the
:target
(this is how the selector is documented to work).Actual Behavior
On navigation, the element is not highlighted. If you refresh the page after navigating, you get the correct highlighting.
The text was updated successfully, but these errors were encountered: