Skip to content

Commit

Permalink
fix(radio-group): remove misleading onChange props from types as it i…
Browse files Browse the repository at this point in the history
…s not actually supported

remove misleading onChange props from types as it is not actually supported

#1320
  • Loading branch information
acd02 committed Aug 29, 2023
1 parent f620242 commit de01078
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/components/radio-group/src/RadioGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { RadioInputVariantsProps } from './RadioInput.styles'
export interface RadioGroupProps
extends RadioGroupVariantsProps,
Pick<RadioInputVariantsProps, 'intent'>,
Omit<HTMLAttributes<HTMLDivElement>, 'value' | 'defaultValue' | 'dir'> {
Omit<HTMLAttributes<HTMLDivElement>, 'value' | 'defaultValue' | 'dir' | 'onChange'> {
/**
* Change the component to the HTML tag or custom component of the only child.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/components/radio-group/src/RadioInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { radioInputVariants, RadioInputVariantsProps } from './RadioInput.styles

export interface RadioInputProps
extends RadioInputVariantsProps,
Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'value'> {
Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'value' | 'onChange'> {
/**
* Change the component to the HTML tag or custom component of the only child.
*/
Expand Down

0 comments on commit de01078

Please sign in to comment.