From bf5a11ceb9a37eb02c250dc5ba307443ad386799 Mon Sep 17 00:00:00 2001 From: Takayuki Miura Date: Mon, 9 Sep 2024 19:38:08 +0900 Subject: [PATCH] Set default value for type parameter in SelectProps --- packages/react-aria-components/src/Select.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-aria-components/src/Select.tsx b/packages/react-aria-components/src/Select.tsx index 50c3abaf448..5f68b85bd65 100644 --- a/packages/react-aria-components/src/Select.tsx +++ b/packages/react-aria-components/src/Select.tsx @@ -62,12 +62,12 @@ export interface SelectRenderProps { isRequired: boolean } -export interface SelectProps extends Omit, 'children' | 'label' | 'description' | 'errorMessage' | 'validationState' | 'validationBehavior' | 'items'>, RACValidation, RenderProps, SlotProps {} +export interface SelectProps extends Omit, 'children' | 'label' | 'description' | 'errorMessage' | 'validationState' | 'validationBehavior' | 'items'>, RACValidation, RenderProps, SlotProps {} export const SelectContext = createContext, HTMLDivElement>>(null); export const SelectStateContext = createContext | null>(null); -function Select(props: SelectProps, ref: ForwardedRef) { +function Select(props: SelectProps, ref: ForwardedRef) { [props, ref] = useContextProps(props, ref, SelectContext); let {children, isDisabled = false, isInvalid = false, isRequired = false} = props; let content = useMemo(() => (