Skip to content

Commit 518c35d

Browse files
committed
chore: sync with v4.3
2 parents d38b325 + 6293ea1 commit 518c35d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

projects/coreui-angular/src/lib/offcanvas/offcanvas/offcanvas.component.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,10 @@ export class OffcanvasComponent implements OnInit, OnDestroy {
240240
ngOnInit(): void {
241241
this.#scrollbarWidth = this.backdropService.scrollbarWidth;
242242
this.stateToggleSubscribe();
243-
// hotfix to avoid end offcanvas flicker on first render
244-
this.renderer.setStyle(this.hostElement.nativeElement, 'display', 'flex');
243+
setTimeout(() => {
244+
// hotfix to avoid offcanvas flicker on the first render
245+
this.renderer.setStyle(this.hostElement.nativeElement, 'display', 'flex');
246+
})
245247
}
246248

247249
ngOnDestroy(): void {

0 commit comments

Comments
 (0)