Skip to content

Commit

Permalink
clear focus callback only in case of edit compose
Browse files Browse the repository at this point in the history
  • Loading branch information
tienifr committed Aug 21, 2023
1 parent a623c7d commit 9add8d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/ReportActionComposeFocusManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function focus() {
function clear(isMainComposer = false) {
if (isMainComposer) {
mainComposerFocusCallback = null;
} else {
} else if (mainComposerFocusCallback) {
focusCallback = null;
}
}
Expand Down

0 comments on commit 9add8d1

Please sign in to comment.