Skip to content

Commit

Permalink
fix(ToggleButton): fix id to be required in props (#6658)
Browse files Browse the repository at this point in the history
  • Loading branch information
DallogFheir committed Jul 14, 2023
1 parent b124070 commit 1b410eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ToggleButton.tsx
Expand Up @@ -12,6 +12,7 @@ export interface ToggleButtonProps
name?: string;
checked?: boolean;
disabled?: boolean;
id: string;
onChange?: React.ChangeEventHandler<HTMLInputElement>;
value: string | ReadonlyArray<string> | number;
inputRef?: React.Ref<HTMLInputElement>;
Expand Down Expand Up @@ -58,7 +59,7 @@ const propTypes = {
onChange: PropTypes.func,

/**
* The value of the input, should be unique amongst it's siblings when nested in a
* The value of the input, should be unique amongst its siblings when nested in a
* `ToggleButtonGroup`.
*/
value: PropTypes.oneOfType([
Expand Down

0 comments on commit 1b410eb

Please sign in to comment.