Skip to content

Commit fbfb871

Browse files
authored
Fix RadioContext type definition (#4798)
1 parent b4e1f1c commit fbfb871

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export interface RadioRenderProps {
102102
}
103103

104104
export const RadioGroupContext = createContext<ContextValue<RadioGroupProps, HTMLDivElement>>(null);
105-
export const RadioContext = createContext<ContextValue<RadioProps, HTMLInputElement>>(null);
105+
export const RadioContext = createContext<ContextValue<Partial<RadioProps>, HTMLInputElement>>(null);
106106
let InternalRadioContext = createContext<RadioGroupState | null>(null);
107107

108108
function RadioGroup(props: RadioGroupProps, ref: ForwardedRef<HTMLDivElement>) {

0 commit comments

Comments
 (0)