Skip to content

Section collapse button state not updated after 'Collapse All' #15

@kookyleo

Description

@kookyleo

Bug Report

Description

When using the "Collapse All" function on a page, all subsections are automatically collapsed, but the collapse buttons in subsection headers are not updated to show "Expand". They still display "Collapse" even though the sections are already collapsed.

Current Behavior

  1. Open a page with multiple sections
  2. Click "Collapse All"
  3. All sections are collapsed ✓
  4. Section header buttons still show "Collapse" ✗ (should show "Expand")

Expected Behavior

After "Collapse All" is executed:

  • All sections should be collapsed
  • All section header buttons should update to show "Expand"
  • Button state should accurately reflect the current section state

Steps to Reproduce

  1. Navigate to any page with collapsible sections
  2. Click the "Collapse All" button
  3. Observe that sections are collapsed but buttons are not updated
  4. Click on a section header button labeled "Collapse"
  5. Notice it actually expands the section (opposite of what the label suggests)

Technical Notes

  • Issue is a UI state synchronization problem
  • The collapse/expand action works correctly
  • Only the button label/state is not being updated
  • Need to update button state after batch collapse operation
  • May need to trigger button update event or directly modify button states

Related Code

Likely in:

  • Section collapse/expand handler
  • "Collapse All" implementation
  • Button state management logic

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions