We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 98aacc2 + 791c00d commit 2006a93Copy full SHA for 2006a93
src/app/components/content/IsaacParsonsQuestion.tsx
@@ -44,6 +44,12 @@ class IsaacParsonsQuestionComponent extends React.Component<IsaacParsonsQuestion
44
window.addEventListener('keyup', this.onKeyUp);
45
}
46
47
+ componentWillUnmount() {
48
+ window.removeEventListener('mousemove', this.onMouseMove);
49
+ window.removeEventListener('touchmove', this.onMouseMove);
50
+ window.removeEventListener('keyup', this.onKeyUp);
51
+ }
52
+
53
componentDidUpdate = (prevProps: IsaacParsonsQuestionProps, prevState: IsaacParsonsQuestionState) => {
54
if (!prevProps.currentAttempt && !this.props.currentAttempt) {
55
const defaultAttempt: ParsonsChoiceDTO = {
0 commit comments