Comments (7)
please help to check link
from qwik.
https://qwikstarterwvympk-skus--5173--71ef666c.local-credentialless.webcontainer.io/link-scroll
@williamsdyyz
from qwik.
@JerryWu1234 Link updated in the original post. Apologies, I'm not too familiar with Stackblitz
from qwik.
I can only see that in your stackblitz @williamsdyyz
from qwik.
Append /link-scroll to the address in the preview pane. The share link I created already had that. But I guess not. ¯_(ツ)_/¯
I also added a link on the first page since Stackblitz and I are having a disagreement.
from qwik.
thanks @williamsdyyz
So the purpose of the scroll
value is for using the "back" button to go back to a route and have it "remember" the scroll position.
For navigating normally, it doesn't remember the scroll positions, only for going back in history.
Maybe this should be documented better?
from qwik.
@shairez Interesting. False assumption on my part. That prop is not documented at all.
In that case, the issue changes somewhat. For the use-case of showing a modal dialog that can be closed with the back button (similar to Android UX), there is no way to stop the navigation to the dialog from scrolling the underlying document to top.
I've added an example to the link-scroll page: scroll down, click "Open dialog". The dialog appears but the document scrolls to top which is undesirable. The back button nicely closes the dialog and the scroll position is restored to where it should ideally have been all along.
I guess this is really a feature request, not a bug.
Is there any existing way to achieve what I need?
from qwik.
Related Issues (20)
- [🐞] useComputed no longer has a readonly type HOT 3
- [📖] QwikCityPlan.routes to get list of all routes is undocumented HOT 1
- [📖] vite qwikCity plugin should be referenced in /docs/qwik-city
- [📖] qwikVite plugin should be referenced in /docs/components/overview
- [🐞] Speculative Module Fetching seems to slow down page load and interactivity dramatically in v1.8.0 HOT 1
- [🐞] when passing a "string" key props the symbol output is different which seems to impact reactivity HOT 5
- [🐞] Route loader dropping query params on static builds used in hybrid mobile apps HOT 7
- [🐞] Code(13): Actual value for useContext(button-context) can not be found, make sure some ancestor component has set a value using useContextProvider() HOT 4
- 🐞 Significant performance issue when loading Qwik pages using 4g Slow on basic interactions HOT 6
- [📖] "empty cache & hard reload" gotcha is too hidden
- [📖] How to debug Big js chunks on build HOT 2
- [🐞] qwikVite lint:true can slowdown development servers significantly HOT 1
- [🐞] Server crashes when accessing URL with double slashes (//) HOT 2
- [🐞] Cannot read properties of null (reading 'useContext') HOT 4
- Fix attribute changing with ternary operator in v2 HOT 1
- [🐞] MDX layouts currently ignored by transformer.
- [🐞] New child added cannot access to parent context HOT 2
- `tsm` is no longer supported HOT 2
- [🐞] Qwik is slow when used first time HOT 2
- [🐞] Website - Environment Variable Page is 404 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.