From e1b72a79f9cc131d8ac50bb5d89ef1f42a4e01b4 Mon Sep 17 00:00:00 2001 From: Takayuki Miura <49489155+kp047i@users.noreply.github.com> Date: Wed, 16 Oct 2024 09:14:30 +0900 Subject: [PATCH] Set default value for type parameter in SelectProps (#7014) Co-authored-by: Reid Barber --- 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(() => (