Repository navigation
Commit e799b6a
fix(mobile): question answer field keeps up with Gboard autocorrect
The custom answer input took its value straight from the global draft atom.
That atom re-renders through useSyncExternalStore on the sync lane, while
TextInput's own text change state lands on the default lane, so the new value
reached the input out of step with its event count and overwrote in-flight
IME edits. The input now owns its text locally and adopts only draft changes
it did not write, such as an option selection clearing it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent 701e13c commit e799b6a
1 file changed
Lines changed: 17 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
67 | 78 | | |
68 | 79 | | |
69 | 80 | | |
| |||
195 | 206 | | |
196 | 207 | | |
197 | 208 | | |
198 | | - | |
| 209 | + | |
199 | 210 | | |
200 | 211 | | |
201 | 212 | | |
202 | | - | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
203 | 218 | | |
204 | 219 | | |
205 | 220 | | |
| |||
0 commit comments