mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 11:40:04 +08:00
update warning message
This commit is contained in:
parent
7d3bc4ebd4
commit
0b67dc4e12
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user