Closed
Description
Reproduction
Use StackBlitz to reproduce your issue: https://stackblitz.com/edit/angular-cdk-overlay-issue-apycr4
Steps to reproduce:
- Open example in IE11
- Click "Open Dialog" button
- Close Dialog
- Click "Check supportsScrollBehavior" button
- Open console
- "ERROR!!! IE11 doesn't support scroll-behavior" message presented into the console
Expected Behavior
BlockScrollStrategy.disable shouldn't add "scroll-behavior" style property to html element by design.
Actual Behavior
BlockScrollStrategy.disable was called by MatDialog and it mutates style object of html element by adding scrollBehavior property into it. Due to specification this property shouldn't be. And it affects also supportsScrollBehavior method, because after BlockScrollStrategy.disable call IE11 "supports" scroll-behavior, but it doesn't.
Environment
- Angular: 8.0+
- CDK/Material: 8.0+
- Browser(s): IE11
- Operating System (e.g. Windows, macOS, Ubuntu): Windows 10