Skip to content

Commit

Permalink
fix issue 27156
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedGaber93 committed Sep 18, 2023
1 parent baa788a commit 124ec28
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ function ComposerWithSuggestions({

// Reset suggestions when an emoji is replaced and the selection is not changed.
// More info issue #27156
if (selection.end === newSelectionPosition){
if (selection.end === newSelectionPosition && suggestionsRef.current){
suggestionsRef.current.resetSuggestions();
}

Expand Down

0 comments on commit 124ec28

Please sign in to comment.