Compare commits

...
Author SHA1 Message Date
Erick Zhao 82ccef12e0 fix: actually unmount key listener on settings component 2020-10-08 15:31:20 -07:00
+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);
}
/**