Skip to content

Commit

Permalink
unsubscribe from event
Browse files Browse the repository at this point in the history
  • Loading branch information
luacmartins committed Mar 3, 2023
1 parent 6b636ad commit 8bfa4b7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pages/home/report/ReportActionCompose.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,10 @@ class ReportActionCompose extends React.Component {

componentWillUnmount() {
ReportActionComposeFocusManager.clear();

if (this.unsubscribeEscapeKey) {
this.unsubscribeEscapeKey();
}
}

onSelectionChange(e) {
Expand Down

0 comments on commit 8bfa4b7

Please sign in to comment.