Commit c1c8a30
Do not send extra onChangeText even wnen instantianting multiline TextView (#36930)
Summary:
Pull Request resolved: #36930
This diff fixes #36494
Now this code matches its [Fabric counterpart](7b48899).
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: 62fa281308b9d2e0a807d024f08d8a214bd99b5e1 parent bab46dd commit c1c8a30
File tree
1 file changed
+3
-3
lines changed- packages/react-native/Libraries/Text/TextInput
1 file changed
+3
-3
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
| 259 | + | |
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
264 | 263 | | |
265 | 264 | | |
266 | 265 | | |
267 | 266 | | |
268 | 267 | | |
269 | 268 | | |
270 | | - | |
| 269 | + | |
271 | 270 | | |
272 | 271 | | |
273 | 272 | | |
| 273 | + | |
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
| |||
0 commit comments