From 355c0650595edc9c1730f50de5028898511645e0 Mon Sep 17 00:00:00 2001 From: pradeepkumar Date: Mon, 7 Aug 2023 15:14:20 +0530 Subject: [PATCH] add patch fix from react 0.72.2 Signed-off-by: pradeepkumar Signed-off-by: pradeepkumar --- .../react-native+0.72.1+004+textViewDidChange.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 patches/react-native+0.72.1+004+textViewDidChange.patch diff --git a/patches/react-native+0.72.1+004+textViewDidChange.patch b/patches/react-native+0.72.1+004+textViewDidChange.patch new file mode 100644 index 000000000000..a68c67483e87 --- /dev/null +++ b/patches/react-native+0.72.1+004+textViewDidChange.patch @@ -0,0 +1,13 @@ +diff --git a/node_modules/react-native/Libraries/Text/TextInput/RCTBackedTextInputDelegateAdapter.m b/node_modules/react-native/Libraries/Text/TextInput/RCTBackedTextInputDelegateAdapter.m +index 1c8f8e0..10f469b 100644 +--- a/node_modules/react-native/Libraries/Text/TextInput/RCTBackedTextInputDelegateAdapter.m ++++ b/node_modules/react-native/Libraries/Text/TextInput/RCTBackedTextInputDelegateAdapter.m +@@ -256,7 +256,7 @@ - (BOOL)textView:(__unused UITextView *)textView shouldChangeTextInRange:(NSRang + + - (void)textViewDidChange:(__unused UITextView *)textView + { +- if (_ignoreNextTextInputCall) { ++ if (_ignoreNextTextInputCall && [_lastStringStateWasUpdatedWith isEqual:_backedTextInputView.attributedText]) { + _ignoreNextTextInputCall = NO; + return; + } \ No newline at end of file