Skip to content

Commit ea5c269

Browse files
Fix console warning about using SelectWidget with a number as value, that works fine (#805)
1 parent 787b091 commit ea5c269

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎src/components/widgets/SelectWidget.js‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ export default class SelectWidget extends React.Component {
88
name: PropTypes.string.isRequired,
99
onChange: PropTypes.func,
1010
options: PropTypes.array.isRequired,
11-
value: PropTypes.oneOfType([PropTypes.string, PropTypes.array]).isRequired
11+
value: PropTypes.oneOfType([
12+
PropTypes.number,
13+
PropTypes.string,
14+
PropTypes.array
15+
]).isRequired
1216
};
1317

1418
static defaultProps = {

0 commit comments

Comments
 (0)