diff --git a/change/@fluentui-react-radio-eec73af1-4507-40ff-990d-62a0622eddeb.json b/change/@fluentui-react-radio-eec73af1-4507-40ff-990d-62a0622eddeb.json new file mode 100644 index 0000000000000..6d6c41ab33dc7 --- /dev/null +++ b/change/@fluentui-react-radio-eec73af1-4507-40ff-990d-62a0622eddeb.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Allow data argument on onChange", + "packageName": "@fluentui/react-radio", + "email": "miroslav.stastny@microsoft.com", + "dependentChangeType": "patch" +} diff --git a/packages/react-radio/etc/react-radio.api.md b/packages/react-radio/etc/react-radio.api.md index 91b3083a0a02d..c4cc03546e72c 100644 --- a/packages/react-radio/etc/react-radio.api.md +++ b/packages/react-radio/etc/react-radio.api.md @@ -67,7 +67,7 @@ export type RadioOnChangeData = { }; // @public -export type RadioProps = Omit, 'input'>, 'size'> & { +export type RadioProps = Omit, 'input'>, 'onChange' | 'size'> & { value?: string; labelPosition?: 'after' | 'below'; disabled?: boolean; diff --git a/packages/react-radio/src/components/Radio/Radio.types.ts b/packages/react-radio/src/components/Radio/Radio.types.ts index f649db5778ea8..38df20cddb08e 100644 --- a/packages/react-radio/src/components/Radio/Radio.types.ts +++ b/packages/react-radio/src/components/Radio/Radio.types.ts @@ -33,7 +33,7 @@ export type RadioSlots = { /** * Radio Props */ -export type RadioProps = Omit, 'input'>, 'size'> & { +export type RadioProps = Omit, 'input'>, 'onChange' | 'size'> & { /** * The value of the RadioGroup when this Radio item is selected. */