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

Commit 58daec4

Browse files
Merge pull request #384 from IHIutch/update-collapse
fix: Set ccollapse height to auto on enter complete, unless finalHeight wa…
2 parents 465cb45 + 217b85e commit 58daec4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/chakra-ui-core/src/CAccordion/CAccordion.stories.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ storiesOf('UI | Accordion', module)
3232
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
3333
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
3434
commodo consequat.
35+
</CAccordionPanel>
3536
</CAccordionItem>
3637
</CAccordion>
3738
`

packages/chakra-ui-core/src/CTransition/Transition.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ const CAnimateHeight = {
486486
height: [this.initialHeight || 0, this.finalHeight || height],
487487
easing: this.enterEasing,
488488
duration: this.duration,
489-
complete
489+
complete: () => { el.style.height = this.finalHeight || 'auto' }
490490
})
491491
})
492492
},

0 commit comments

Comments
 (0)