Commit eccacb6
authored
fix(iOS): idx out of bounds crash inside caretRectForPosition (#611)
# Summary
Fixes: `idx` out of bounds crash inside `caretRectForPosition`
## Test Plan
1. Write in input: test
2. press enter
3. toggle center alignment
4. Write in input: test
5. select whole text and delete it
6. press with cursor outside of simulator
7. press in input
The crash should not occur
## Screenshots / Videos
n/a
## Compatibility
| OS | Implemented |
| ------- | :---------: |
| iOS | ✅ |
| Android | ❌ |
## Checklist
- [ ] E2E tests are passing
- [ ] Required E2E tests have been added (if applicable)1 parent 68f1e37 commit eccacb6
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
| |||
0 commit comments