I have embedded the following page as a child element of Router.
The scroll position is not restored on browser back. Is this because the height of the element is not enough when restoring?
Also, I would like to know if there is a way to work around this.
let items = []
onMount(() => {
// Call web api and set it to items every time
})
<div>
{#each items as item}
<div on:click={()=>push("/detail/" + item.id)}>・・・</div>
{/each}
</div>
I have embedded the following page as a child element of Router.
The scroll position is not restored on browser back. Is this because the height of the element is not enough when restoring?
Also, I would like to know if there is a way to work around this.