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