mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
1fbfd8c7bb
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/36930 This diff fixes https://github.com/facebook/react-native/issues/36494 Now this code matches its [Fabric counterpart](https://github.com/facebook/react-native/commit/7b4889937ceb0eccdbb62a610b58525c29928be7). There is also one extra check that `_lastStringStateWasUpdatedWith != nil`. With that in place we don't send extra `onChangeText` event when `attributedText` is assigned for the first time on TextView construction. Changelog: [IOS][Fixed] - Do not send extra onChangeText even wnen instantianting multiline TextView Reviewed By: sammy-SC Differential Revision: D45049135 fbshipit-source-id: 62fa281308b9d2e0a807d024f08d8a214bd99b5e