From 2a2b39ddbba2573d6efc6509fa765c60c4947abe Mon Sep 17 00:00:00 2001 From: Diego Smania Date: Sat, 18 Jul 2026 17:52:57 -0300 Subject: [PATCH] [src/push_menu]: Fix to allow a collapsed sidebar at initialization --- src/ts/push-menu.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ts/push-menu.ts b/src/ts/push-menu.ts index f369c84b01..75a2a46fd8 100644 --- a/src/ts/push-menu.ts +++ b/src/ts/push-menu.ts @@ -341,12 +341,12 @@ class PushMenu extends BaseComponent { // When persistence is enabled and screen size is above the breakpoint, load // the saved sidebar state from local storage. Otherwise, use responsive - // logic to set the initial state. On low screen sizes, the sidebar should - // always be collapsed by default unless explicitly opened. + // logic to set the initial state (unless explicitly set as collapsed at + // initialization). if (this._config.enablePersistence && !this.isMobileSize()) { this.loadSidebarState() - } else { + } else if (!this.isCollapsed()) { this.updateStateByResponsiveLogic() } }