Commit 316e984
authored
fix(iOS): default value scroll (#465)
# Summary
Fixes iOS input scrolling when provided default value is too long to fit
maximum input height.
## Test Plan
- Enter longer `defaultValue`, for the example app below should be
enough
```tsx
defaultValue={
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec suscipit auctor dui, at efficitur velit. Donec a semper nisl. Sed id metus ac enim commodo efficitur. Donec eget ligula a enim efficitur efficitur. Donec sed felis eget nunc convallis varius. Curabitur in mi ut nisl tincidunt commodo. In eleifend, enim in facilisis commodo, odio nisl faucibus enim, sed efficitur nisi nisl et nunc. Proin ac sem ut ipsum varius fringilla. Donec eget est a sapien efficitur convallis. Donec ac odio ac justo efficitur fermentum. Donec vel nibh a felis efficitur cursus.'
}
```
- Refresh the app
- Notice that input is scrollable
## Screenshots / Videos
https://github.com/user-attachments/assets/fe2ec476-6ddf-4c8d-b76a-2f9ea60d8ed8
## Compatibility
| OS | Implemented |
| ------- | :---------: |
| iOS | ✅ |
| Android | ❌ |1 parent 884ea5e commit 316e984
2 files changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
9 | 20 | | |
10 | 21 | | |
11 | 22 | | |
| |||
0 commit comments