Skip to content

Commit

Permalink
Fix: Accordion content blinking
Browse files Browse the repository at this point in the history
  • Loading branch information
truph01 authored and oblador committed Aug 27, 2024
1 parent 3500b1d commit 9f285f8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Collapsible.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,12 @@ export default class Collapsible extends Component {
animating,
} = this.state;
const hasKnownHeight = !measuring && (measured || collapsed);
const style = hasKnownHeight && {
const style = hasKnownHeight ? {
overflow: 'hidden',
height: height,
} : {
overflow: 'hidden',
height: 0,
};
const contentStyle = {};
if (measuring) {
Expand Down

0 comments on commit 9f285f8

Please sign in to comment.