Commit 8819d6c
authored
fix: TextInputFocus state not in sync with View focus (microsoft#2553)
## Summary:
This is fixed upstream with
facebook#52472 . Let's commit (and
backport) a smaller fix for now.
## Test Plan:
Minimal repro of bug is this code below. Basically, you can't focus on
"Pressable Child 2" twice by clicking on the container
```
<Pressable style={{backgroundColor: 'lightblue', padding: 10, gap: 10}} onPress={() => {myRef.current.focus();}}>
<Text>Pressable Container</Text>
<Pressable><Text>Pressable Child 1</Text></Pressable>
<Pressable ref={myRef}><Text>Pressable Child 2</Text></Pressable>
<Pressable><Text>Pressable Child 3</Text></Pressable>
</Pressable>
```1 parent 02d5480 commit 8819d6c
1 file changed
Lines changed: 5 additions & 1 deletion
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
107 | 111 | | |
108 | 112 | | |
109 | 113 | | |
| |||
0 commit comments