only detach if created before
This commit is contained in:
parent
ff383b4aa0
commit
1948e9bc17
1 changed files with 4 additions and 2 deletions
|
@ -55,9 +55,11 @@ export default class MainSplit extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
|
if (this.resizer) {
|
||||||
this.resizer.detach();
|
this.resizer.detach();
|
||||||
this.resizer = null;
|
this.resizer = null;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
componentDidUpdate(prevProps) {
|
componentDidUpdate(prevProps) {
|
||||||
const wasExpanded = !this.props.collapsedRhs && prevProps.collapsedRhs;
|
const wasExpanded = !this.props.collapsedRhs && prevProps.collapsedRhs;
|
||||||
|
|
Loading…
Reference in a new issue