Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/ts/push-menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
Expand Down
Loading