Skip to content

Commit

Permalink
Merge pull request #52745 from daledah/fix/52319
Browse files Browse the repository at this point in the history
fix: up-to-edit feature on message with attachment
  • Loading branch information
stitesExpensify authored Nov 27, 2024
2 parents fe6f1e7 + b38a345 commit bf009ed
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -503,12 +503,12 @@ function ComposerWithSuggestions(

const onSelectionChange = useCallback(
(e: CustomSelectionChangeEvent) => {
setSelection(e.nativeEvent.selection);

if (!textInputRef.current?.isFocused()) {
return;
}
suggestionsRef.current?.onSelectionChange?.(e);

setSelection(e.nativeEvent.selection);
},
[suggestionsRef],
);
Expand Down

0 comments on commit bf009ed

Please sign in to comment.