Skip to content

Commit d68fb80

Browse files
Merge pull request mui#4807 from barbu110/master
[RadioButtonGroup] Fix propTypes to accept anything
2 parents b83544a + d6c06a5 commit d68fb80

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/RadioButton/RadioButtonGroup.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ class RadioButtonGroup extends Component {
1313
*/
1414
className: PropTypes.string,
1515
/**
16-
* The `value` property (case-sensitive) of the radio button that will be
16+
* The `value` property of the radio button that will be
1717
* selected by default. This takes precedence over the `checked` property
1818
* of the `RadioButton` elements.
1919
*/
20-
defaultSelected: PropTypes.string,
20+
defaultSelected: PropTypes.any,
2121
/**
2222
* Where the label will be placed for all child radio buttons.
2323
* This takes precedence over the `labelPosition` property of the
@@ -34,7 +34,7 @@ class RadioButtonGroup extends Component {
3434
*
3535
* @param {object} event `change` event targeting the selected
3636
* radio button.
37-
* @param {string} value The `value` of the selected radio button.
37+
* @param {*} value The `value` of the selected radio button.
3838
*/
3939
onChange: PropTypes.func,
4040
/**
@@ -44,7 +44,7 @@ class RadioButtonGroup extends Component {
4444
/**
4545
* The `value` of the currently selected radio button.
4646
*/
47-
valueSelected: PropTypes.string,
47+
valueSelected: PropTypes.any,
4848
};
4949

5050
static defaultProps = {

0 commit comments

Comments
 (0)