From b898bd11ca55911cd39655e2076471127203861a Mon Sep 17 00:00:00 2001 From: Saurav Dutta Date: Wed, 21 May 2025 17:52:18 +0530 Subject: [PATCH] Update Collapsible.js --- Collapsible.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Collapsible.js b/Collapsible.js index 827a239..fb3cbb5 100644 --- a/Collapsible.js +++ b/Collapsible.js @@ -27,7 +27,9 @@ export default class Collapsible extends Component { } componentDidMount() { - this._measureContent((height) => this.state.height.setValue(height)); + if (!this.props.collapsed) { + this._measureContent((height) => this.state.height.setValue(height)); + } } componentDidUpdate(prevProps) {