Skip to content

Commit

Permalink
Added explanatory commit to ComposerWithSuggestions.js
Browse files Browse the repository at this point in the history
  • Loading branch information
artus9033 committed Dec 21, 2023
1 parent b2ff88c commit 98436b7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ function ComposerWithSuggestions({
const positionSnapshot = syncSelectionWithOnChangeTextRef.current.position;
syncSelectionWithOnChangeTextRef.current = null;

// ensure that selection is set imperatively after all state changes are effective
InteractionManager.runAfterInteractions(() => {
// note: this implementation is only available on non-web RN, thus the wrapping
// 'if' block contains a redundant (since the ref is only used on iOS) platform check
Expand Down

0 comments on commit 98436b7

Please sign in to comment.