Skip to content

Commit

Permalink
fix: content is not displayed if collaped default to true
Browse files Browse the repository at this point in the history
  • Loading branch information
truph01 committed Sep 17, 2024
1 parent 2bd7f8d commit a5c1bce
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Collapsible.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ export default class Collapsible extends Component {
}
}

componentDidMount() {
if (!this.props.collapsed) {
this._toggleCollapsed(this.props.collapsed);
}
}

contentHandle = null;

_handleRef = (ref) => {
Expand Down

0 comments on commit a5c1bce

Please sign in to comment.