From d8ac932947e72e0c627dcde3e15cb4c974026127 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A8=80=E8=82=86?= <18x@loacg.com> Date: Fri, 8 Nov 2019 11:14:00 +0800 Subject: [PATCH] fix: select `labelInValue` validator prop type error (#1393) --- components/select/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/select/index.jsx b/components/select/index.jsx index 84a0567f9..81088c6ee 100644 --- a/components/select/index.jsx +++ b/components/select/index.jsx @@ -43,7 +43,7 @@ const AbstractSelectProps = () => ({ loading: PropTypes.bool, }); const Value = PropTypes.shape({ - key: PropTypes.string, + key: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), }).loose; const SelectValue = PropTypes.oneOfType([