Commit eadc298
Let LinkMovementMethod take precedence over accessibility delegate when dataDetector is present (facebook#50887)
Summary:
There is currently a bug with the recent changes to keyboard accessibility with Text and nested links. If something with nested links has a `dataDetectorType` prop then we have 2 different selections when we navigate with arrow keys since the drawing behind the 2 are separate.
Removing LinkMovementMethod is not possible since it allows for clicking the links it detects
As a result, lets just allow it to take precedence over the delegate when handling link navigation in the cases its present.
Changelog: [Android][Fixed] - Double selection with dataDetectorType and links
Reviewed By: NickGerleman
Differential Revision: D735498391 parent b40157e commit eadc298
File tree
1 file changed
+11
-1
lines changed- packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text
1 file changed
+11
-1
lines changedLines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
734 | 734 | | |
735 | 735 | | |
736 | 736 | | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
737 | 745 | | |
738 | 746 | | |
739 | 747 | | |
740 | 748 | | |
741 | 749 | | |
742 | 750 | | |
743 | 751 | | |
744 | | - | |
| 752 | + | |
| 753 | + | |
745 | 754 | | |
746 | 755 | | |
747 | 756 | | |
| |||
752 | 761 | | |
753 | 762 | | |
754 | 763 | | |
| 764 | + | |
755 | 765 | | |
756 | 766 | | |
757 | 767 | | |
| |||
0 commit comments