Skip to content

Commit

Permalink
fix: up-to-edit feature on message with attachment
Browse files Browse the repository at this point in the history
  • Loading branch information
daledah committed Nov 19, 2024
1 parent d5e7a5a commit b38a345
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 b38a345

Please sign in to comment.