Is it possible to preserve the page's scroll position with f-client-nav and Partials? #2752
Replies: 1 comment
-
Good morning, everyone! Apologies for my oversight, the simple "fix" to this is to use a <button f-partial="{url-here}">Click me</button> This was shown in fresh.deno.dev, but my brain defaulted to links. Many thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, all! Hope you are doing well. I thank the community for such an amazing framework, I love it!
I have been playing around with the framework, in which I intend to create my personal website, but have been having a problem where client-side navigation resets the page scroll. These are my relevant components:
routes/index.tsx:
components/PostListModal.tsx:
Am I doing something wrong, or is this the expected behavior? I would like to preserve the scroll across navigation.
Many thanks, and have a great day!
Beta Was this translation helpful? Give feedback.
All reactions