Skip to content

Commit

Permalink
fixed swagger-api#9595 - Primitve data not collapsible. Changed hideS…
Browse files Browse the repository at this point in the history
…elfOnExpand to true for primitive-model
  • Loading branch information
dakkkshh committed Feb 24, 2024
1 parent 5aa8e56 commit c051cdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/components/primitive-model.jsx
Expand Up @@ -50,7 +50,7 @@ export default class Primitive extends Component {
</span>

return <span className="model">
<ModelCollapse title={titleEl} expanded={depth <= expandDepth} collapsedContent="[...]" hideSelfOnExpand={expandDepth !== depth}>
<ModelCollapse title={titleEl} expanded={depth <= expandDepth} collapsedContent="[...]" hideSelfOnExpand={false}>
<span className="prop">
{name && depth > 1 && <span className="prop-name">{title}</span>}
<span className="prop-type">{type}</span>
Expand Down

0 comments on commit c051cdd

Please sign in to comment.