Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

AccordionPane doesn't grow when children have dynamic values #124

Open
czaas opened this issue Mar 2, 2021 · 0 comments
Open

AccordionPane doesn't grow when children have dynamic values #124

czaas opened this issue Mar 2, 2021 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@czaas
Copy link
Contributor

czaas commented Mar 2, 2021

Repro: https://codesandbox.io/s/unruffled-curie-6jjdy?file=/src/App.tsx

Behavior: when nested child component grows or exposes new items the accordion doesn't grow

Expected behavior: when a nested child component changes I would expect the accordion pane to grow with it

Possible solution:

  1. We can try and detect any changes when nested
  2. We could add a prop to the pane and add it as a dependency to recalculate pane height
@czaas czaas added bug Something isn't working good first issue Good for newcomers labels Mar 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant