Skip to content

Conversation

hinakhadim
Copy link

On collapsing all the sections, the button now automatically show 'Expand All'. Similar in case of vice versa. Fixes #1311

Before:
Screenshot 2024-03-04 at 4 07 53 PM

After:
image

@arbrandes arbrandes self-requested a review March 4, 2024 16:34
title={sectionTitle}
open={open}
onToggle={() => { setOpen(!open); }}
onToggle={() => { setOpen(!open); setExpandedSections((prevObj) => ({ ...prevObj, [section.id]: !open })); }}
Copy link
Contributor

Choose a reason for hiding this comment

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

I feel like at this point the on event is getting verbose enough that a proper handling function would be better. There's also a lot in common with the next two changes, so it's probably going to be worth it for DRYness.

Copy link
Author

Choose a reason for hiding this comment

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

updated it

@arbrandes
Copy link
Contributor

Since this changes user-facing behavior, we'll need product confirmation on whether it's actually a bug or not. (If it's a bug you don't necessarily need to go through the Product Review Process. @jmakowski1123, what's your take?

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.

Expand All button is not working correctly

2 participants