This repository was archived by the owner on Jan 11, 2023. It is now read-only.
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
Prevent scroll to top when calling goto from method #584
Closed
Description
I'd like to prevent scroll to top when I click on a <button on:click=search()>
, and the search
method calls goto("?q=foo")
.
Prevent scroll seems important in order to keep the user focused on the search form which is not at the top of the page.
I would have the same need with a <select>
element: changing its value would call goto("?selected=foo")
.
Is it possible?
Cf #376