I\'m using angular 5 and angular material (latest version) and I\'m trying to open a dialog from a page. When I click the button that triggers the opening, the entire website is
Easiest fix would be setting the dialog scroll strategy to new NoopScrollStrategy
object:
const dialogRef = this.dialog.open(DialogComponent, {
width: '250px',
data: { name: 'Juan Manuel', animal: 'Perro' },
scrollStrategy: new NoopScrollStrategy()
});
this will only require an extra import:
import { NoopScrollStrategy } from '@angular/cdk/overlay';