Skip to content

Commit

Permalink
feat(models): collapsed schema content should be clickable (#6942)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathis-m committed Feb 17, 2021
1 parent 1082aba commit 0e6dc04
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/core/components/model-collapse.jsx
Expand Up @@ -90,7 +90,11 @@ export default class ModelCollapse extends Component {
<span onClick={ this.toggleCollapsed } className="pointer">
<span className={ "model-toggle" + ( this.state.expanded ? "" : " collapsed" ) }></span>
</span>
{ this.state.expanded ? this.props.children :this.state.collapsedContent }
{
this.state.expanded
? this.props.children
: <span onClick={this.toggleCollapsed} className="pointer">{this.state.collapsedContent}</span>
}
</span>
)
}
Expand Down

0 comments on commit 0e6dc04

Please sign in to comment.