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

only add negative top position if restoreScrollValue is true #160

Merged
merged 2 commits into from
Jun 10, 2022

Conversation

rockwellll
Copy link
Contributor

This addresses the ability to let the modal know that it will or will not restore the scroll value.

When scrollValue is set to false, we need not to add negative top position for the body, moreover, we need not to remove it when unlocking scroll since it's not applied in lockScroll method.

src/modal.js Show resolved Hide resolved
@excid3 excid3 merged commit b63588b into excid3:master Jun 10, 2022
@rockwellll rockwellll deleted the patch-2 branch June 10, 2022 12:29
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

2 participants