From f8749fd8893b20ebaa58f5f36049c48929f8328c Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Wed, 10 Jan 2024 01:49:00 +0800 Subject: [PATCH 1/2] remove double character input to composer --- .../ComposerWithSuggestions/ComposerWithSuggestions.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.js b/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.js index 6c1d71625dc9..c679a16757cd 100644 --- a/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.js +++ b/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.js @@ -451,7 +451,6 @@ function ComposerWithSuggestions({ } focus(); - replaceSelectionWithText(e.key, false); }, [checkComposerVisibility, focus, replaceSelectionWithText], ); From 83c60d71157621b3b695079ab5cf268c9162a1e2 Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Wed, 10 Jan 2024 09:46:27 +0800 Subject: [PATCH 2/2] lint --- .../ComposerWithSuggestions/ComposerWithSuggestions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.js b/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.js index c679a16757cd..00c2575e4e37 100644 --- a/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.js +++ b/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.js @@ -452,7 +452,7 @@ function ComposerWithSuggestions({ focus(); }, - [checkComposerVisibility, focus, replaceSelectionWithText], + [checkComposerVisibility, focus], ); const blur = useCallback(() => {