update warning message

This commit is contained in:
afc163 2017-06-30 22:05:53 +08:00
parent 7d3bc4ebd4
commit 0b67dc4e12

View File

@ -74,8 +74,7 @@ export default class Menu extends React.Component<MenuProps, any> {
warning(
!('inlineCollapsed' in props && props.mode !== 'inline'),
'`onOpen` and `onClose` are removed, please use `onOpenChange` instead, ' +
'see: http://u.ant.design/menu-on-open-change.',
'`inlineCollapsed` should only be used when Menu\'s `mode` is inline.',
);
let openKeys;