Skip to content

Commit 867852a

Browse files
committed
refactor(backdrop): minor cleanups
1 parent 5a2592e commit 867852a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/coreui-angular/src/lib/backdrop/backdrop.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ export class BackdropService {
4747
this.#unListen();
4848
this.#renderer.removeClass(backdropElement, 'show');
4949
setTimeout(() => {
50-
this.#renderer.removeChild(this.#document.body, backdropElement);
5150
if (this.activeBackdrop === backdropElement) {
5251
this.resetScrollbar();
5352
}
53+
this.#renderer.removeChild(this.#document.body, backdropElement);
5454
backdropElement = undefined;
5555
}, 300);
5656
}

0 commit comments

Comments
 (0)