Skip to content

Commit bc2010d

Browse files
committed
fix select PropTypes
1 parent 69ecd05 commit bc2010d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

components/select/index.jsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,16 @@ const AbstractSelectProps = {
3030
showArrow: PropTypes.bool,
3131
}
3232
const Value = PropTypes.shape({
33-
key: String,
33+
key: PropTypes.string,
3434
}).loose
3535

3636
const SelectValue = PropTypes.oneOfType([
3737
PropTypes.string,
38-
38+
PropTypes.number,
3939
PropTypes.arrayOf(PropTypes.oneOfType([
4040
Value,
41-
String,
41+
PropTypes.string,
42+
PropTypes.number,
4243
])),
4344
Value,
4445
])

0 commit comments

Comments
 (0)