Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix scroll-region on html element with overflow-scroll #1782

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

axel-paillaud
Copy link

add restoreScrollPositions() in setPage() method if we have scroll-region. Use this.page instead of page.

This is related to #1211

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant