Skip to content

Commit

Permalink
fix(radio): make selected value optional
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinWijnant committed Jun 6, 2020
1 parent c65fdd1 commit b88ddaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Radio/RadioGroup/RadioGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ import styles from '../../../css-reset.module.css';

export interface RadioContext {
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
selectedValue: string;
selectedValue?: string;
groupRef?: React.Ref<HTMLInputElement>;
name: string;
}

export interface Props {
children: React.ReactNode;
defaultValue: RadioContext['selectedValue'];
defaultValue?: RadioContext['selectedValue'];
name: string;
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
groupRef?: React.Ref<HTMLInputElement>;
Expand Down

0 comments on commit b88ddaf

Please sign in to comment.