Skip to content

Commit

Permalink
revert changes to ReactEditText onChangeText
Browse files Browse the repository at this point in the history
  • Loading branch information
fabOnReact committed Mar 22, 2022
1 parent 3b7581c commit c5762a7
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -564,10 +564,7 @@ public void maybeSetText(ReactTextUpdate reactTextUpdate) {
// When we update text, we trigger onChangeText code that will
// try to update state if the wrapper is available. Temporarily disable
// to prevent an infinite loop.
int startPosition = getSelectionStart();
int endPosition = getSelectionEnd();
setText(spannableStringBuilder);
maybeSetSelection(mNativeEventCount, startPosition, endPosition);
getText().replace(0, length(), spannableStringBuilder);
}
mDisableTextDiffing = false;

Expand Down

0 comments on commit c5762a7

Please sign in to comment.