Skip to content

Commit 55eddec

Browse files
Fix page scroll while dialog open
1 parent 4a6656a commit 55eddec

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

projects/ngsuite/src/lib/dialog/services/DialogRegistry.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ export class NGSuiteDialogRegistry {
1414
private xCount = 0;
1515

1616
constructor() {
17-
const body = document.querySelector('body');
18-
1917
effect(() => {
2018
const entries = this.list();
2119

2220
this.xCount = entries.length;
21+
console.log(entries.length);
2322

2423
// =================
2524

2625
const isOpen = entries.length > 0;
26+
const body = document.querySelector('body');
2727
body?.classList.toggle('ngs-dialog-open', isOpen);
2828
});
2929
}

0 commit comments

Comments
 (0)