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 b0a58614ac8725..0bb6d9bacf5599 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( @@ -111,7 +111,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; }