Skip to content

Commit

Permalink
Merge pull request #28310 from jeet-dhandha/fix-27672
Browse files Browse the repository at this point in the history
fixed getCommonSuffixLength compare value
  • Loading branch information
Hayata Suenaga authored Sep 28, 2023
2 parents df57326 + 7459259 commit 011fded
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ function ComposerWithSuggestions({
suggestionsRef.current.resetSuggestions();
}

const remainder = ComposerUtils.getCommonSuffixLength(commentRef.current, newComment);
const remainder = ComposerUtils.getCommonSuffixLength(commentValue, newComment);
setSelection({
start: newComment.length - remainder,
end: newComment.length - remainder,
Expand Down

0 comments on commit 011fded

Please sign in to comment.