Skip to content

feat: add defaultCollapsed prop to SidebarSection.#807

Open
Pranit-DC wants to merge 1 commit into
frappe:mainfrom
Pranit-DC:feat/sidebar-section-default-collapsed
Open

feat: add defaultCollapsed prop to SidebarSection.#807
Pranit-DC wants to merge 1 commit into
frappe:mainfrom
Pranit-DC:feat/sidebar-section-default-collapsed

Conversation

@Pranit-DC

@Pranit-DC Pranit-DC commented Jun 28, 2026

Copy link
Copy Markdown

Adds defaultCollapsed prop to SidebarSection, allowing sections to be rendered in a collapsed state on mount.

Defaults to false — no breaking changes.

Changes

  • types.ts — added defaultCollapsed?: boolean to SidebarSectionProps
  • SidebarSection.vue — initialize isCollapsed from prop
  • Sidebar.api.md — regenerated via propsgen.ts

Closes #795

… initial collapsed state of a sidebar section. Defaults to false (expanded) to maintain backward compatibility. Closes frappe#795
Copilot AI review requested due to automatic review settings June 28, 2026 16:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sidebar section should have a default collapsed state

2 participants