-
-
Notifications
You must be signed in to change notification settings - Fork 403
Open
Description
I'm currently doing something like:
func hackyNavigate(newUrl string) {
app.Window().Call("scrollTo", map[string]interface{}{
"top": 0,
"behavior": "smooth",
})
app.Window().Get("history").Call("replaceState",
nil,
"",
newUrl,
)
}This "works" but it breaks my back button. Can anyone suggest how I can navigate between components without having the window immediately scroll to the top of the page?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels