fix some bugs in #561 (#578)

This commit is contained in:
Mr.tang 2018-03-03 01:26:20 +08:00 committed by Cassie Tarakajian
parent 4e5c58595f
commit 43f482ab48

View file

@ -124,6 +124,7 @@ class IDEView extends React.Component {
}
componentWillUnmount() {
document.removeEventListener('keydown', this.handleGlobalKeydown, false);
clearTimeout(this.autosaveInterval);
this.autosaveInterval = null;
this.consoleSize = undefined;
@ -490,6 +491,7 @@ class IDEView extends React.Component {
<Overlay
title="Error"
ariaLabel="error"
closeOverlay={this.props.hideErrorModal}
>
<ErrorModal
type={this.props.ide.errorType}