From bd298802e6af1614bd689c9f4e1e2fd2c1dead95 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Mon, 18 Mar 2019 10:35:13 +0800 Subject: [PATCH] fix: `Select` `selectedKeys` type validation error [#597] --- components/menu/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/menu/index.jsx b/components/menu/index.jsx index b1c5ac8a5..9ff48f5d2 100644 --- a/components/menu/index.jsx +++ b/components/menu/index.jsx @@ -21,7 +21,7 @@ export const menuProps = { theme: PropTypes.oneOf(['light', 'dark']).def('light'), mode: MenuMode.def('vertical'), selectable: PropTypes.bool, - selectedKeys: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), + selectedKeys: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number])), defaultSelectedKeys: PropTypes.array, openKeys: PropTypes.array, defaultOpenKeys: PropTypes.array,