Commit d09a4d9
committed
fix: "onKeyPress" prop of TextInput
The replacement text in "shouldChangeTextInRange:replacementText:" may be a mutable string, so we need to copy it to prevent changes to the "_predictedText" internal property.1 parent 58c992b commit d09a4d9
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
282 | | - | |
| 282 | + | |
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
| |||
0 commit comments