Skip to content

Commit

Permalink
Merge pull request #21 from rsuite/fix-dropdown-placement
Browse files Browse the repository at this point in the history
Bugfix: Dropdown placement not customizable in Nav
  • Loading branch information
simonguo committed May 4, 2018
2 parents 095f518 + 2a1aece commit 4d5acc3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Nav.js
Expand Up @@ -73,7 +73,7 @@ class Nav extends React.Component<Props> {
const hasWaterline = appearance !== 'default';

const items = ReactChildren.mapCloneElement(children, item => {
let { eventKey, active, placement, ...rest } = item.props;
let { eventKey, active, ...rest } = item.props;
let displayName = _.get(item, ['type', 'displayName']);

if (displayName === 'NavItem') {
Expand All @@ -88,8 +88,7 @@ class Nav extends React.Component<Props> {
...rest,
onSelect,
activeKey,
componentClass: 'li',
placement: sidenav ? 'rightBottom' : placement
componentClass: 'li'
};
}

Expand Down

0 comments on commit 4d5acc3

Please sign in to comment.