Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "Allow data argument on onChange",
"packageName": "@fluentui/react-radio",
"email": "[email protected]",
"dependentChangeType": "patch"
}
2 changes: 1 addition & 1 deletion packages/react-radio/etc/react-radio.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export type RadioOnChangeData = {
};

// @public
export type RadioProps = Omit<ComponentProps<Partial<RadioSlots>, 'input'>, 'size'> & {
export type RadioProps = Omit<ComponentProps<Partial<RadioSlots>, 'input'>, 'onChange' | 'size'> & {
value?: string;
labelPosition?: 'after' | 'below';
disabled?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion packages/react-radio/src/components/Radio/Radio.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export type RadioSlots = {
/**
* Radio Props
*/
export type RadioProps = Omit<ComponentProps<Partial<RadioSlots>, 'input'>, 'size'> & {
export type RadioProps = Omit<ComponentProps<Partial<RadioSlots>, 'input'>, 'onChange' | 'size'> & {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This approach is supposed to be consistent with InputProps in react-input.

/**
* The value of the RadioGroup when this Radio item is selected.
*/
Expand Down