From b3e10bd082f01d5fb8d52f37e5e6368ebbd836ed Mon Sep 17 00:00:00 2001 From: "Elain T." Date: Tue, 14 Jan 2025 15:37:12 -0500 Subject: [PATCH] fix(design): fix sidebar flickering on SSR (#3434) --- libs/design/sidebar/src/sidebar/sidebar.component.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/design/sidebar/src/sidebar/sidebar.component.ts b/libs/design/sidebar/src/sidebar/sidebar.component.ts index 5e2d5e36ed..121e0e0a7a 100644 --- a/libs/design/sidebar/src/sidebar/sidebar.component.ts +++ b/libs/design/sidebar/src/sidebar/sidebar.component.ts @@ -174,6 +174,8 @@ export class DaffSidebarComponent implements DaffOpenable { */ if (e.toState === 'closed' || e.toState === 'under-closed' || e.toState === 'side-fixed-closed') { this._elementRef.nativeElement.style.visibility = 'hidden'; + } else { + this._elementRef.nativeElement.style.visibility = null; } }