Skip to content

Commit

Permalink
fix: details
Browse files Browse the repository at this point in the history
  • Loading branch information
benjycui committed Oct 30, 2017
1 parent 7dfd303 commit ea77218
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Menu.jsx
Expand Up @@ -12,7 +12,7 @@ const Menu = createReactClass({
selectedKeys: PropTypes.arrayOf(PropTypes.string),
defaultOpenKeys: PropTypes.arrayOf(PropTypes.string),
openKeys: PropTypes.arrayOf(PropTypes.string),
mode: PropTypes.oneOf(['horizontal', 'vertical', 'inline']),
mode: PropTypes.oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']),
getPopupContainer: PropTypes.func,
onClick: PropTypes.func,
onSelect: PropTypes.func,
Expand Down
5 changes: 5 additions & 0 deletions src/MenuItemGroup.jsx
Expand Up @@ -12,6 +12,11 @@ const MenuItemGroup = createReactClass({
rootPrefixCls: PropTypes.string,
},

getDefaultProps() {
// To fix keyboard UX.
return { disabled: true };
},

renderInnerMenuItem(item, subIndex) {
const { renderMenuItem, index } = this.props;
return renderMenuItem(item, index, subIndex);
Expand Down

0 comments on commit ea77218

Please sign in to comment.