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
Following a link with a named anchor to a page including ScrollControls does not scroll the resulting page to the anchor.
E.g., where http://example.org is a page including ScrollControls, from a new tab, pasting http://example.org#features into the address bar and pressing Return will load the page, but the page will not be scrolled to the features anchor.
Behavior
On page load, the page is not scrolled to the named anchor. (offset y = 0)
Expected behavior
On page load, the page should be scrolled to the named anchor.
Reproduction
No StackBlitz provided. It doesn't appear that the bug is reproducible on StackBlitz' window-in-window setup.
Steps to reproduce
Example markup
<a href="#two">Jump to section 2</a>
<section><h1>Section 1</h1></section>
<section><h2 id="#two">Section 2</h2></section>
In the text editor, insert the example markup into the playground/src/pages/controls/ScrollControlsDemo.vue and save.
On the command line, start the playground with pnpm run playground if not already running.
In the browser, open a new, blank tab.
In the browser, paste http://localhost:5173/controls/scroll-controls#two in the address bar and hit Enter.
Describe the bug
Following a link with a named anchor to a page including
ScrollControls
does not scroll the resulting page to the anchor.E.g., where
http://example.org
is a page includingScrollControls
, from a new tab, pastinghttp://example.org#features
into the address bar and pressingReturn
will load the page, but the page will not be scrolled to thefeatures
anchor.Behavior
On page load, the page is not scrolled to the named anchor. (offset y = 0)
Expected behavior
On page load, the page should be scrolled to the named anchor.
Reproduction
No StackBlitz provided. It doesn't appear that the bug is reproducible on StackBlitz' window-in-window setup.
Steps to reproduce
Example markup
pnpm run playground
if not already running.http://localhost:5173/controls/scroll-controls#two
in the address bar and hitEnter
.System Info
Used Package Manager
npm
Code of Conduct
Related: #288 (comment)
The text was updated successfully, but these errors were encountered: