Commit a460df2
Fix keyboard navigation through nested a11y views in ReactHorizontalScrollView with snapToInterval enabled (#54351)
Summary:
Pull Request resolved: #54351
Navigating with keyboard through a11y items in horizontal FlatList that are not the direct child of the ScrollView contentView is broken, because instead of focusing the next focusable sibling, arrowScroll scrolls to the next page. This issue only happens when FlatList has snapToInterval enabled.
Fixed the condition that checked if a given focusable view belongs to the contentView.
Changelog: [Android] [Fixed] - Fix keyboard navigation through items in horizontal ScrollView with snapToInterval enabled
Reviewed By: Abbondanzo
Differential Revision: D85261167
fbshipit-source-id: 220c6648c0381899f312b1b1f3923ed5203899b11 parent 1ffa38d commit a460df2
File tree
1 file changed
+16
-1
lines changed- packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/scroll
1 file changed
+16
-1
lines changedLines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
740 | 741 | | |
741 | 742 | | |
742 | 743 | | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
743 | 758 | | |
744 | 759 | | |
745 | 760 | | |
| |||
751 | 766 | | |
752 | 767 | | |
753 | 768 | | |
754 | | - | |
| 769 | + | |
755 | 770 | | |
756 | 771 | | |
757 | 772 | | |
| |||
0 commit comments