diff --git a/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm b/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm index 6cf72777384..1a461aa93f9 100644 --- a/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm +++ b/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm @@ -222,8 +222,13 @@ using namespace facebook::react; return; } + auto data = _state->getData(); + + if (!oldState) { + _mostRecentEventCount = _state->getData().mostRecentEventCount; + } + if (_mostRecentEventCount == _state->getData().mostRecentEventCount) { - auto data = _state->getData(); _comingFromJS = YES; [self _setAttributedString:RCTNSAttributedStringFromAttributedStringBox(data.attributedStringBox)]; _comingFromJS = NO;