Commit 92a83d9
authored
fix: prevent double focus rings in table when clicking on expand buttons (adobe#9861)
include visually hidden elements in preventFocus so we get the right target the browser tries to focus. this allows us to properly refocus the original element when the user presses on a preventFocusOnPress element, fixing the broken flow that useFocusRing and useFocus had when trying to update the focused state of a row when focus moves due to a click on the expand button.1 parent 352fa19 commit 92a83d9
File tree
2 files changed
+3
-3
lines changed- packages/react-aria/src
- interactions
- utils
2 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
| 37 | + | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
0 commit comments