Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for disabling top-scroll for partials #2781

Open
Eason0729 opened this issue Dec 2, 2024 · 1 comment
Open

Add support for disabling top-scroll for partials #2781

Eason0729 opened this issue Dec 2, 2024 · 1 comment

Comments

@Eason0729
Copy link

I have seen this issue: #1923

However, that issue seems to be about <form/> support.

I am working on load more button with <Partial mode="append">, more entries are loaded but client view keep scrolling to top.

Maybe I should just reopen that issue?

@murphyslaw
Copy link

murphyslaw commented Dec 22, 2024

In my case, I wanted to stay on the same page andI was able to transform the link into a button without a form. Because of using the button element, it does not scroll to the top.

// before
<a href="/current" f-partial="/partials/content">Link</a>
// after
<button f-partial="/partials/content">Link</button>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants