Skip to content

Commit

Permalink
fix: Correctly identificate hs-layout element during ngOnInit
Browse files Browse the repository at this point in the history
  • Loading branch information
FilipLeitner committed Mar 19, 2024
1 parent 6374f51 commit 2f35873
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion projects/hslayers/src/hslayers.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ export class HslayersComponent implements AfterViewInit, OnInit, OnDestroy {
this.hsConfig.setAppId(this.id);
}

this.HsLayoutService.layoutElement = this.elementRef.nativeElement;
this.HsLayoutService.layoutElement =
this.elementRef.nativeElement.querySelector('.hs-layout');

this.HsLayoutService.contentWrapper =
this.elementRef.nativeElement.querySelector('.hs-content-wrapper');
Expand Down

0 comments on commit 2f35873

Please sign in to comment.