You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
AAccordion has initial collapsed prop to control the initial collapse state but additional collapse state handling is needed after the initial render.
Describe the solution you'd like
Another prop is needed to control the collapsed state based on outside parent/sibling events.
This is using the key prop in React to "remount" the component in a way that resets its state. For the Accordion, if you have collapsed for the accordions as some type of state in the page you're rendering the accordions, then you can get the effect of controlling the state by using the combination of key and collapsed. It's a bit far fetched, and I don't think this is how the state should be controlled, but if you needed something asap, then you might find a way to use the key prop
Additional context
Spoke with Brennan on 3/11. This is a nice to have for the production version of iroh-registration-ui
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
AAccordion has initial collapsed prop to control the initial collapse state but additional collapse state handling is needed after the initial render.
Describe the solution you'd like
Another prop is needed to control the collapsed state based on outside parent/sibling events.
Describe alternatives you've considered
Additional context
Spoke with Brennan on 3/11. This is a nice to have for the production version of iroh-registration-ui
The text was updated successfully, but these errors were encountered: