Skip to content

Commit

Permalink
Merge pull request #34169 from bernhardoj/fix/33710-double-input-comp…
Browse files Browse the repository at this point in the history
…oser

Fix character is input twice to composer when pressing any key while composer is blurred
  • Loading branch information
arosiclair authored Jan 22, 2024
2 parents 5e71037 + 83c60d7 commit ec91f2c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -448,9 +448,8 @@ function ComposerWithSuggestions({
}

focus();
replaceSelectionWithText(e.key, false);
},
[checkComposerVisibility, focus, replaceSelectionWithText],
[checkComposerVisibility, focus],
);

const blur = useCallback(() => {
Expand Down

0 comments on commit ec91f2c

Please sign in to comment.