@coreui/angular 4.2.28 → 4.2.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5719,8 +5719,10 @@ class OffcanvasComponent {
5719
5719
  ngOnInit() {
5720
5720
  __classPrivateFieldSet(this, _OffcanvasComponent_scrollbarWidth, this.backdropService.scrollbarWidth, "f");
5721
5721
  this.stateToggleSubscribe();
5722
- // hotfix to avoid end offcanvas flicker on first render
5723
- this.renderer.setStyle(this.hostElement.nativeElement, 'display', 'flex');
5722
+ setTimeout(() => {
5723
+ // hotfix to avoid offcanvas flicker on the first render
5724
+ this.renderer.setStyle(this.hostElement.nativeElement, 'display', 'flex');
5725
+ });
5724
5726
  }
5725
5727
  ngOnDestroy() {
5726
5728
  this.offcanvasService.toggle({ show: false, id: this.id });