From aa5f44fa7e2a7e0f9552e6d63cce89d576d3b4a4 Mon Sep 17 00:00:00 2001 From: ahmedGaber93 Date: Tue, 19 Sep 2023 16:24:55 +0200 Subject: [PATCH] improve comments --- .../home/report/ReportActionCompose/ComposerWithSuggestions.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions.js b/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions.js index 46d69a763a15..0257590908e8 100644 --- a/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions.js +++ b/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions.js @@ -185,8 +185,7 @@ function ComposerWithSuggestions({ setIsCommentEmpty(!!newComment.match(/^(\s)*$/)); setValue(newComment); if (commentValue !== newComment) { - // Reset emoji suggestions when an emoji is replaced. - // Important when emoji is replaced and the selection is not changed, more info issue #27156 + // Ensure emoji suggestions are hidden even when the selection is not changed (so calculateEmojiSuggestion would not be called). if (suggestionsRef.current) { suggestionsRef.current.resetSuggestions(); }