Skip to content

Commit

Permalink
fix: insert caallback
Browse files Browse the repository at this point in the history
  • Loading branch information
WikusKriek committed Aug 23, 2023
1 parent 13fac95 commit d4e4d85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/home/report/ReportActionCompose.js
Original file line number Diff line number Diff line change
Expand Up @@ -634,10 +634,10 @@ function ReportActionCompose({
[getMentionOptions, setHighlightedMentionIndex, value, resetSuggestions],
);

const onSelectionChange = (e) => {
const onSelectionChange = useCallback((e) => {
LayoutAnimation.configureNext(LayoutAnimation.create(50, LayoutAnimation.Types.easeInEaseOut, LayoutAnimation.Properties.opacity));
setSelection(e.nativeEvent.selection);
};
}, []);

const setUpComposeFocusManager = useCallback(() => {
// This callback is used in the contextMenuActions to manage giving focus back to the compose input.
Expand Down

0 comments on commit d4e4d85

Please sign in to comment.