@@ -39,7 +39,7 @@ export const Radios = () => (
@@ -47,7 +47,7 @@ export const Radios = () => (
diff --git a/assets/js/src/common/form/radio/group.tsx b/assets/js/src/common/form/radio/group.tsx
index ca5bdf3b5b..1bcfee48cf 100644
--- a/assets/js/src/common/form/radio/group.tsx
+++ b/assets/js/src/common/form/radio/group.tsx
@@ -12,7 +12,7 @@ type Props = {
options: RadioProps[],
defaultValue?: RadioValueType,
isFullWidth?: boolean,
- onChange?: (RadioValueType) => void,
+ onChange?: (value: RadioValueType) => void,
};
const RadioGroup = ({
@@ -37,7 +37,7 @@ const RadioGroup = ({
key={label}
name={name}
value={value}
- onChange={() => handleChange(value)}
+ onCheck={() => handleChange(value)}
isFullWidth={isFullWidth}
{...attributes} // eslint-disable-line react/jsx-props-no-spreading
>
diff --git a/assets/js/src/common/form/radio/radio.tsx b/assets/js/src/common/form/radio/radio.tsx
index 9e1d6ae37f..ae1db59470 100644
--- a/assets/js/src/common/form/radio/radio.tsx
+++ b/assets/js/src/common/form/radio/radio.tsx
@@ -2,15 +2,15 @@ import React, { InputHTMLAttributes } from 'react';
import classnames from 'classnames';
type Props = InputHTMLAttributes & {
+ onCheck: (isChecked: boolean) => void,
children?: React.ReactNode,
isFullWidth?: boolean,
- onChange?: (boolean) => void,
};
const Radio = ({
children,
isFullWidth,
- onChange,
+ onCheck,
...attributes
}: Props) => (