Skip to content
This repository has been archived by the owner on May 17, 2023. It is now read-only.

Commit

Permalink
Add target prop to navigation item (#1549)
Browse files Browse the repository at this point in the history
  • Loading branch information
Franco Correa committed Mar 11, 2019
1 parent 4536a7f commit c9dec4a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/components/molecules/navigation/navigation-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ class NavigationItem extends React.Component {
<NavigationItem.Item>
<NavigationItem.Element
href={props.url}
target={props.target}
onClick={subMenu ? this.toggleSubmenu : props.onClick}
selected={selected}
aria-expanded={props.open}
Expand Down Expand Up @@ -132,7 +133,8 @@ NavigationItem.propTypes = {
onClick: PropTypes.func,
selected: PropTypes.bool,
new: PropTypes.bool,
url: PropTypes.string
url: PropTypes.string,
target: PropTypes.string
}

NavigationItem.defaultProps = {
Expand Down

0 comments on commit c9dec4a

Please sign in to comment.