-
Notifications
You must be signed in to change notification settings - Fork 6.8k
fix(cdk/overlay): block scroll strategy throwing off scroll behavior feature detection #17223
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(cdk/overlay): block scroll strategy throwing off scroll behavior feature detection #17223
Conversation
0ee45ab
to
ca90b1b
Compare
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.
LGTM
ca90b1b
to
5f3ecde
Compare
We're currently experiencing this issue in our application and I see that this PR is still open. Is there a workaround or a polyfill we alleviate the issue? |
5f3ecde
to
bfc9874
Compare
…feature detection To avoid a scrolling animation when we disable scrollig, we remove and re-set the `scroll-behavior` property on the body without feature checking it. The problem is that since we've set the property to *something*, our `scrollBehaviorSupported` feature check will be thrown off because it checks for `'scrollBehavior' in document.documentElement.style`. Fixes angular#17221.
bfc9874
to
49af4c1
Compare
It looks like this caused some test failures back when we last ran it through Google's internal presubmit system, but there's no note in our tracker of what those failures were, so we should give it a fresh presubmit. |
…feature detection (#17223) To avoid a scrolling animation when we disable scrollig, we remove and re-set the `scroll-behavior` property on the body without feature checking it. The problem is that since we've set the property to *something*, our `scrollBehaviorSupported` feature check will be thrown off because it checks for `'scrollBehavior' in document.documentElement.style`. Fixes #17221. (cherry picked from commit f940d34)
…feature detection (angular#17223) To avoid a scrolling animation when we disable scrollig, we remove and re-set the `scroll-behavior` property on the body without feature checking it. The problem is that since we've set the property to *something*, our `scrollBehaviorSupported` feature check will be thrown off because it checks for `'scrollBehavior' in document.documentElement.style`. Fixes angular#17221.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
To avoid a scrolling animation when we disable scrollig, we remove and re-set the
scroll-behavior
property on the body without feature checking it. The problem is that since we've set the property to something, ourscrollBehaviorSupported
feature check will be thrown off because it checks for'scrollBehavior' in document.documentElement.style
.Fixes #17221.