Skip to content

Commit 8e75339

Browse files
committed
review comments
1 parent 9408aa9 commit 8e75339

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/dev/s2-docs/src/SearchResultsMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ interface SearchResultsMenuProps {
3030
searchRef: React.RefObject<TextFieldRef<HTMLInputElement> | null>,
3131
showCards: boolean,
3232
renderCardList: () => React.ReactNode,
33-
filter?: AutocompleteProps<any>['filter'],
33+
filter?: AutocompleteProps<ComponentItem | ComponentSection>['filter'],
3434
noResultsText?: (value: string) => string,
3535
closeSearchMenu: () => void,
3636
isPrimary?: boolean

packages/react-aria-components/src/Autocomplete.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const UNSTABLE_InternalAutocompleteContext = createContext<InternalAutoco
3737
/**
3838
* An autocomplete combines a TextField or SearchField with a Menu or ListBox, allowing users to search or filter a list of suggestions.
3939
*/
40-
export function Autocomplete<T>(props: AutocompleteProps<T>): JSX.Element {
40+
export function Autocomplete<T extends object>(props: AutocompleteProps<T>): JSX.Element {
4141
let ctx = useSlottedContext(AutocompleteContext, props.slot);
4242
props = mergeProps(ctx, props);
4343
let {filter, disableAutoFocusFirst} = props;

0 commit comments

Comments
 (0)