diff --git a/packages/react-native/ReactCommon/react/renderer/components/textinput/platform/ios/react/renderer/components/iostextinput/TextInputShadowNode.cpp b/packages/react-native/ReactCommon/react/renderer/components/textinput/platform/ios/react/renderer/components/iostextinput/TextInputShadowNode.cpp index b6c7a889093f59..ed0d900fd24cb7 100644 --- a/packages/react-native/ReactCommon/react/renderer/components/textinput/platform/ios/react/renderer/components/iostextinput/TextInputShadowNode.cpp +++ b/packages/react-native/ReactCommon/react/renderer/components/textinput/platform/ios/react/renderer/components/iostextinput/TextInputShadowNode.cpp @@ -83,7 +83,7 @@ AttributedString TextInputShadowNode::getAttributedString( .string = getConcreteProps().text, .textAttributes = textAttributes, // TODO: Is this really meant to be by value? - .parentShadowView = ShadowView{}}); + .parentShadowView = ShadowView(*this)}); auto attachments = Attachments{}; BaseTextShadowNode::buildAttributedString( @@ -110,7 +110,8 @@ void TextInputShadowNode::updateStateIfNeeded( (!state.layoutManager || state.layoutManager == textLayoutManager_) && "`StateData` refers to a different `TextLayoutManager`"); - if (state.reactTreeAttributedString == reactTreeAttributedString && + if (state.reactTreeAttributedString.isContentEqual( + reactTreeAttributedString) && state.layoutManager == textLayoutManager_) { return; }