-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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
- Open a page with multiple sections
- Click "Collapse All"
- All sections are collapsed ✓
- 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
- Navigate to any page with collapsible sections
- Click the "Collapse All" button
- Observe that sections are collapsed but buttons are not updated
- Click on a section header button labeled "Collapse"
- 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working