Commit ca793dc
authored
fix(iOS): formatting stripped when autocorrect applied (#551)
# Summary
Fixes: #548
This PR prevents iOS autocorrect from stripping formatting by capturing
active meta-attributes in `shouldChangeTextInRange` and reapplying them
in `didProcessEditing`
## Test Plan
Run reproduction steps from #548, the issue should be resolved.
## Screenshots / Videos
https://github.com/user-attachments/assets/dce5a5b5-0626-49bd-8fd1-1c8b34b19efc
## Compatibility
| OS | Implemented |
| ------- | :---------: |
| iOS | ✅ |
| Android | ❌ |
## Checklist
- [ ] E2E tests are passing
- [ ] Required E2E tests have been added (if applicable)1 parent 0422faa commit ca793dc
3 files changed
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
1994 | 1995 | | |
1995 | 1996 | | |
1996 | 1997 | | |
| 1998 | + | |
| 1999 | + | |
| 2000 | + | |
| 2001 | + | |
| 2002 | + | |
| 2003 | + | |
| 2004 | + | |
| 2005 | + | |
| 2006 | + | |
1997 | 2007 | | |
1998 | 2008 | | |
1999 | 2009 | | |
| |||
2192 | 2202 | | |
2193 | 2203 | | |
2194 | 2204 | | |
| 2205 | + | |
| 2206 | + | |
| 2207 | + | |
| 2208 | + | |
| 2209 | + | |
| 2210 | + | |
| 2211 | + | |
| 2212 | + | |
| 2213 | + | |
| 2214 | + | |
| 2215 | + | |
| 2216 | + | |
| 2217 | + | |
| 2218 | + | |
| 2219 | + | |
| 2220 | + | |
| 2221 | + | |
| 2222 | + | |
2195 | 2223 | | |
2196 | 2224 | | |
2197 | 2225 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
| |||
0 commit comments