fix: actually unmount key listener on settings component

This commit is contained in:
Erick Zhao
2020-10-08 15:31:20 -07:00
parent 0abc4fb9a9
commit 82ccef12e0
+1 -1
View File
@@ -53,7 +53,7 @@ export class Settings extends React.Component<SettingsProps, SettingsState> {
}
public componentWillUnmount() {
window.removeEventListener('keyup', this.closeSettingsPanel);
window.removeEventListener('keyup', this.closeSettingsPanel, true);
}
/**