Commit f462fc1
committed
Preserve TextInput returnKeyType when changing multiline
RCTCopyBackedTextInput copies the keyboard traits over to the replacement
backing view when a TextInput switches between single-line and multiline,
but omits returnKeyType. The prop itself is unchanged across the
transition, so the prop diff does not re-run the setter and the new view
keeps its default Return key.
Copy returnKeyType alongside keyboardType, and add a regression test next
to the existing tintColor one.1 parent 8cfde6d commit f462fc1
2 files changed
Lines changed: 12 additions & 0 deletions
File tree
- packages/react-native/React
- Fabric/Mounting/ComponentViews/TextInput
- Tests/Text
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
29 | 40 | | |
0 commit comments