mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-27 05:38:12 +00:00
Use componentWillUnmount
This commit is contained in:
@@ -70,7 +70,7 @@ export class Lightbox extends React.Component<Props, {}> {
|
||||
document.addEventListener('keyup', this.onKeyUp, useCapture);
|
||||
}
|
||||
|
||||
public componentWillMount() {
|
||||
public componentWillUnmount() {
|
||||
const useCapture = true;
|
||||
document.removeEventListener('keyup', this.onKeyUp, useCapture);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user