Skip to content

Commit

Permalink
improve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedGaber93 committed Sep 19, 2023
1 parent ff989cc commit aa5f44f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit aa5f44f

Please sign in to comment.