Skip to content

Commit

Permalink
Merge pull request Expensify#28583 from paultsimura/fix/28170-mention…
Browse files Browse the repository at this point in the history
…-on-delete

fix: Chat - App displays mention suggestion for sometime when we remove spaces before
  • Loading branch information
lakchote authored Oct 2, 2023
2 parents bbdb8f5 + dfa66cf commit b09b7e3
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,10 @@ function SuggestionMention({

useEffect(() => {
calculateMentionSuggestion(selection.end);
}, [selection, calculateMentionSuggestion]);

// We want this hook to run only on selection change.
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [selection]);

const updateShouldShowSuggestionMenuToFalse = useCallback(() => {
setSuggestionValues((prevState) => {
Expand Down

0 comments on commit b09b7e3

Please sign in to comment.