fix: actually unmount key listener on settings component
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user