Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

fix: Set ccollapse height to auto on enter complete, unless finalHeight wa… #384

Merged
merged 2 commits into from
Feb 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ storiesOf('UI | Accordion', module)
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
commodo consequat.
</CAccordionPanel>
</CAccordionItem>
</CAccordion>
`
Expand Down
2 changes: 1 addition & 1 deletion packages/chakra-ui-core/src/CTransition/Transition.js
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ const CAnimateHeight = {
height: [this.initialHeight || 0, this.finalHeight || height],
easing: this.enterEasing,
duration: this.duration,
complete
complete: () => { el.style.height = this.finalHeight || 'auto' }
})
})
},
Expand Down