bigskysoftware / bigskysoftware/htmx

hx-boost scroll to default (feature request)

Open
#3,138 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
49.4k
Forks
1.7k
Avg merge
3d 22h
Merged PRs (30d)
30

Description

I think the behaviour of hx-boost scroll to is not user friendly (unless I miss something). When you have, for example a menu, and use hx-boost. When something below the menu is replaced then whenever you use hx-boost it will jump to the div but your menu will not be in the screen anymore. Only can mitigate this by adding a # to the url or using one of the settings.
I think it would be better not to have this scroll functionality by default False on hx-boost and to turn it on explicit or have hx-scroll attr that you can set on particular hx-boost.

**We also have to help:**
htmx.config.defaultFocusScroll
htmx.config.scrollBehavior

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.