diff --git a/src/dev-app/dialog/dialog-demo.ts b/src/dev-app/dialog/dialog-demo.ts index 0a49bba8ab63..017c34cb957c 100644 --- a/src/dev-app/dialog/dialog-demo.ts +++ b/src/dev-app/dialog/dialog-demo.ts @@ -53,7 +53,7 @@ export class DialogDemo { // Possible useful example for the open and closeAll events. // Adding a class to the body if a dialog opens and // removing it after all open dialogs are closed - dialog.afterOpen.subscribe(() => { + dialog.afterOpened.subscribe(() => { if (!doc.body.classList.contains('no-scroll')) { doc.body.classList.add('no-scroll'); }