Skip to content

Commit 1852849

Browse files
committed
chore: sync with v4.3
2 parents d5b5b90 + 6293ea1 commit 1852849

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
@@ -237,8 +237,10 @@ export class OffcanvasComponent implements OnInit, OnDestroy {
237237
ngOnInit(): void {
238238
this.#scrollbarWidth = this.backdropService.scrollbarWidth;
239239
this.stateToggleSubscribe();
240-
// hotfix to avoid end offcanvas flicker on first render
241-
this.renderer.setStyle(this.hostElement.nativeElement, 'display', 'flex');
240+
setTimeout(() => {
241+
// hotfix to avoid offcanvas flicker on the first render
242+
this.renderer.setStyle(this.hostElement.nativeElement, 'display', 'flex');
243+
})
242244
}
243245

244246
ngOnDestroy(): void {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy