diff --git a/src/framework/theme/components/layout/layout.component.ts b/src/framework/theme/components/layout/layout.component.ts index 4e614859bc..b7d249b864 100644 --- a/src/framework/theme/components/layout/layout.component.ts +++ b/src/framework/theme/components/layout/layout.component.ts @@ -455,9 +455,7 @@ export class NbLayoutComponent implements AfterViewInit, OnDestroy { ngAfterViewInit() { this.layoutDirectionService.onDirectionChange() .pipe(takeWhile(() => this.alive)) - .subscribe(direction => { - this.renderer.setProperty(this.document, 'dir', direction); - }); + .subscribe(direction => this.document.dir = direction); this.scrollService.onManualScroll() .pipe(takeWhile(() => this.alive))