File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
packages/@react-spectrum/s2/src Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ export interface ComboBoxProps<T extends object> extends
81
81
StyleProps ,
82
82
SpectrumLabelableProps ,
83
83
HelpTextProps ,
84
- Pick < ListBoxProps < T > , 'items' > ,
84
+ Pick < ListBoxProps < T > , 'items' | 'dependencies' > ,
85
85
Pick < AriaPopoverProps , 'shouldFlip' > ,
86
86
Pick < AsyncLoadable , 'onLoadMore' > {
87
87
/** The contents of the collection. */
@@ -559,7 +559,7 @@ const ComboboxInner = forwardRef(function ComboboxInner(props: ComboBoxProps<any
559
559
if ( typeof children === 'function' ) {
560
560
renderer = (
561
561
< >
562
- < Collection items = { items ?? defaultItems } >
562
+ < Collection items = { items ?? defaultItems } dependencies = { props . dependencies } >
563
563
{ children }
564
564
</ Collection >
565
565
{ listBoxLoadingCircle }
@@ -681,6 +681,7 @@ const ComboboxInner = forwardRef(function ComboboxInner(props: ComboBoxProps<any
681
681
loaderHeight : LOADER_ROW_HEIGHTS [ size ] [ scale ]
682
682
} } >
683
683
< ListBox
684
+ dependencies = { props . dependencies }
684
685
renderEmptyState = { ( ) => (
685
686
< span className = { emptyStateText ( { size} ) } >
686
687
{ loadingState === 'loading' ? stringFormatter . format ( 'table.loading' ) : stringFormatter . format ( 'combobox.noResults' ) }
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ export interface PickerProps<T extends object> extends
97
97
StyleProps ,
98
98
SpectrumLabelableProps ,
99
99
HelpTextProps ,
100
- Pick < ListBoxProps < T > , 'items' > ,
100
+ Pick < ListBoxProps < T > , 'items' | 'dependencies' > ,
101
101
Pick < AriaPopoverProps , 'shouldFlip' > ,
102
102
Pick < AsyncLoadable , 'onLoadMore' > {
103
103
/** The contents of the collection. */
@@ -319,7 +319,7 @@ export const Picker = /*#__PURE__*/ (forwardRef as forwardRefType)(function Pick
319
319
if ( typeof children === 'function' && items ) {
320
320
renderer = (
321
321
< >
322
- < Collection items = { items } >
322
+ < Collection items = { items } dependencies = { props . dependencies } >
323
323
{ children }
324
324
</ Collection >
325
325
{ listBoxLoadingCircle }
@@ -425,6 +425,7 @@ export const Picker = /*#__PURE__*/ (forwardRef as forwardRefType)(function Pick
425
425
} ]
426
426
] } >
427
427
< ListBox
428
+ dependencies = { props . dependencies }
428
429
items = { items }
429
430
className = { listbox ( { size} ) } >
430
431
{ renderer }
You can’t perform that action at this time.
0 commit comments