Skip to content

Commit

Permalink
fix(v2): hide sidebar after click on child item (#2649)
Browse files Browse the repository at this point in the history
  • Loading branch information
lex111 authored Apr 23, 2020
1 parent 510bec6 commit 796bd0c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/docusaurus-theme-classic/src/theme/Navbar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ function MobileNavItem({items, ...props}) {
<ul className="menu__list">
{items.map((linkItemInner, i) => (
<li className="menu__list-item" key={i}>
<NavLink className="menu__link" {...linkItemInner} />
<NavLink
className="menu__link"
{...linkItemInner}
onClick={props.onClick}
/>
</li>
))}
</ul>
Expand Down

0 comments on commit 796bd0c

Please sign in to comment.