Skip to content

Commit

Permalink
fix(settings): remove event listener with capture option, also
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelgerber committed Mar 22, 2024
1 parent 57767df commit 4d21bc3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,9 @@ export class SettingsMenu extends React.Component<{

componentWillUnmount(): void {
document.removeEventListener("keydown", this.onDocumentKeyDown)
document.removeEventListener("click", this.onDocumentClick)
document.removeEventListener("click", this.onDocumentClick, {
capture: true,
})
}

@action.bound onDocumentKeyDown(e: KeyboardEvent): void {
Expand Down

0 comments on commit 4d21bc3

Please sign in to comment.