Skip to content

Commit

Permalink
fix: checkboxgroup value for numeric ids
Browse files Browse the repository at this point in the history
  • Loading branch information
devharris7 committed Apr 21, 2021
1 parent 17634c1 commit c9ef505
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/CheckboxGroup/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ CheckboxGroup.propTypes = {
/**
* string array of checked values
*/
value: PropTypes.arrayOf(PropTypes.string).isRequired,
value: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number])).isRequired,
/**
* checkBoxGroup children: oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]
*/
Expand Down
10 changes: 9 additions & 1 deletion www/containers/props.json
Original file line number Diff line number Diff line change
Expand Up @@ -1200,7 +1200,15 @@
"type": {
"name": "arrayOf",
"value": {
"name": "string"
"name": "union",
"value": [
{
"name": "string"
},
{
"name": "number"
}
]
}
},
"required": true,
Expand Down

0 comments on commit c9ef505

Please sign in to comment.