In line 454 : console.log(page.scrollRegions) is always undefined, and I don't know why.
If we do only console.log(page), we can see the scrollRegions field inside browser inspector, but I think it was populated asynchronously ?
With this version, scroll-region work well, and scrolling items are not reset when we submit the form (for example), but this.page is kind of a cheat ?
You're welcome ! Glad to help.
Let me know if I should reinvestigate this PR, I admit that since it's been a while, I would have to dive back into it, but it's possible if you think it's necessary.
add
restoreScrollPositions()
insetPage()
method if we have scroll-region. Usethis.page
instead ofpage
.This is related to #1211
In line 454 :
console.log(page.scrollRegions)
is always undefined, and I don't know why. If we do onlyconsole.log(page)
, we can see the scrollRegions field inside browser inspector, but I think it was populated asynchronously ?With this version,
scroll-region
work well, and scrolling items are not reset when we submit the form (for example), butthis.page
is kind of a cheat ?