From ef3952650d585a812e03032fed70538285d57462 Mon Sep 17 00:00:00 2001 From: Mazdak Gibran <141390141+mazdakgibran@users.noreply.github.com> Date: Thu, 29 Jan 2026 17:27:31 +0500 Subject: [PATCH] resolved direction issue in Arabic on browser reload --- src/app/app.component.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 6fa60d8..ea2cefd 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -35,6 +35,10 @@ export class AppComponent { this.direction = this.storageService.getItem('direction') || directions.LTR; this.storageService.setItem('direction', this.direction); + if (typeof document !== 'undefined') { + document.documentElement.setAttribute('dir', this.direction); + } + const userStr = this.storageService.getItem('user'); if (userStr) { try {