Skip to content

Commit

Permalink
fix(community-side-navigation): active submenu auto open in site builder
Browse files Browse the repository at this point in the history
active submenu is not automatically open in site builder because of uglification
  • Loading branch information
Andrew-K-Lam authored and theetrain committed Jan 16, 2019
1 parent c7af3ad commit 9a87220
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/SideNavigation/SideNavigation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class SideNavigation extends Component {
checkActiveState = () => {
React.Children.map(this.props.children, (child, index) => {
const id = `TDS-SideNavigation-${index}`
if (child.type.name === 'SubMenu' && child.props.active) {
if (!('href' in child.props) && child.props.active) {
this.toggleOpen(id)
}
})
Expand Down

0 comments on commit 9a87220

Please sign in to comment.