Skip to content

Commit ce4c42a

Browse files
committed
handle textFieldDidChange only if markedTextRange is empty
1 parent 2052bb6 commit ce4c42a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Libraries/Text/TextInput/RCTBackedTextInputDelegateAdapter.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,12 @@ - (BOOL)textFieldShouldReturn:(__unused UITextField *)textField
107107

108108
- (void)textFieldDidChange
109109
{
110+
UITextRange *markedTextRange = _backedTextInputView.markedTextRange;
111+
112+
if (markedTextRange != nil && !markedTextRange.isEmpty) {
113+
return;
114+
}
115+
110116
_textDidChangeIsComing = NO;
111117
[_backedTextInputView.textInputDelegate textInputDidChange];
112118

0 commit comments

Comments
 (0)