Skip to content

Commit 033515e

Browse files
committed
Do not mount accordion automatically
1 parent 922cbbf commit 033515e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/StdDataPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class DataPanel extends React.Component<Props, State> {
132132
}
133133

134134
return (
135-
<Accordion defaultExpanded={this.props.defaultExpanded} onChange={this.onExpandChange.bind(this)}>
135+
<Accordion defaultExpanded={this.props.defaultExpanded} onChange={this.onExpandChange.bind(this)} TransitionProps={{ unmountOnExit: true }}>
136136
<AccordionSummary
137137
expandIcon={<ExpandMoreIcon />}
138138
aria-controls="panel1a-content"

0 commit comments

Comments
 (0)