-
-
Notifications
You must be signed in to change notification settings - Fork 87
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
[useScrollLock] Fix jump with scroll-behavior
style
#1343
Conversation
✅ Deploy Preview for base-ui ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@@ -52,6 +53,7 @@ function preventScrollStandard(referenceElement?: Element | null) { | |||
overflowY: html.style.overflowY, | |||
overflowX: html.style.overflowX, | |||
}; | |||
originalHtmlScrollBehavior = html.style.scrollBehavior; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why isn't it a part of originalHtmlStyles
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It has to be assigned after the .scrollTop/Left
assignments
Fixes #1340