From 43f482ab48253c0d0076d7ee5113b56905127c72 Mon Sep 17 00:00:00 2001 From: "Mr.tang" <1074461480@qq.com> Date: Sat, 3 Mar 2018 01:26:20 +0800 Subject: [PATCH] fix some bugs in #561 (#578) --- client/modules/IDE/pages/IDEView.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/modules/IDE/pages/IDEView.jsx b/client/modules/IDE/pages/IDEView.jsx index ac9e1a78..9f6bb437 100644 --- a/client/modules/IDE/pages/IDEView.jsx +++ b/client/modules/IDE/pages/IDEView.jsx @@ -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 {