You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Additional props to pass to the underlying ActionList component.
52
+
*/
53
+
actionListProps?: Partial<ActionListProps>
54
+
/**
55
+
* Determines how keyboard focus behaves when navigating beyond the first or last item in the list.
56
+
*
57
+
* - `'stop'`: Focus will stop at the first or last item; further navigation in that direction will not move focus.
58
+
* - `'wrap'`: Focus will wrap around to the opposite end of the list when navigating past the boundaries (e.g., pressing Down on the last item moves focus to the first).
59
+
*
60
+
* @default 'wrap'
61
+
*/
62
+
focusOutBehavior?: 'stop'|'wrap'
47
63
/**
48
64
* Private API for use internally only. Adds the ability to switch between
49
65
* `active-descendant` and roving tabindex.
@@ -77,6 +93,7 @@ export function FilteredActionList({
77
93
items,
78
94
textInputProps,
79
95
inputRef: providedInputRef,
96
+
scrollContainerRef: providedScrollContainerRef,
80
97
groupMetadata,
81
98
showItemDividers,
82
99
message,
@@ -86,6 +103,8 @@ export function FilteredActionList({
86
103
announcementsEnabled =true,
87
104
fullScreenOnNarrow,
88
105
onSelectAllChange,
106
+
actionListProps,
107
+
focusOutBehavior ='wrap',
89
108
_PrivateFocusManagement ='active-descendant',
90
109
...listProps
91
110
}: FilteredActionListProps): JSX.Element{
@@ -102,14 +121,16 @@ export function FilteredActionList({
Copy file name to clipboardExpand all lines: packages/react/src/SelectPanel/SelectPanel.docs.json
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -207,6 +207,24 @@
207
207
"type": "'start' | 'end' | 'center'",
208
208
"defaultValue": "'start'",
209
209
"description": "Determines the alignment of the panel relative to the anchor. Defaults to 'start' which aligns the left edge of the panel with the left edge of the anchor."
210
+
},
211
+
{
212
+
"name": "scrollContainerRef",
213
+
"type": "React.Ref<HTMLDivElement | null>",
214
+
"defaultValue": "undefined",
215
+
"description": "A ref assigned to the scrollable container wrapping the ActionList"
216
+
},
217
+
{
218
+
"name": "actionListProps",
219
+
"type": "Partial<ActionListProps>",
220
+
"defaultValue": "undefined",
221
+
"description": "See [ActionList props](/react/ActionList#props)."
222
+
},
223
+
{
224
+
"name": "focusOutBehavior",
225
+
"type": "'start' | 'wrap'",
226
+
"defaultValue": "'wrap'",
227
+
"description": "Determines how keyboard focus behaves when navigating beyond the first or last item in the list."
0 commit comments