Skip to content

Commit d8ac932

Browse files
sendyatangjinzhou
authored andcommitted
fix: select labelInValue validator prop type error (#1393)
1 parent 4687bf1 commit d8ac932

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/select/index.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const AbstractSelectProps = () => ({
4343
loading: PropTypes.bool,
4444
});
4545
const Value = PropTypes.shape({
46-
key: PropTypes.string,
46+
key: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
4747
}).loose;
4848

4949
const SelectValue = PropTypes.oneOfType([

0 commit comments

Comments
 (0)