Skip to content

Commit

Permalink
fix(v2): remove invalid attr from mobile nav links (#2765)
Browse files Browse the repository at this point in the history
* fix(v2): remove invalid attr from mobile nav links

* Update index.js

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
  • Loading branch information
lex111 and yangshun committed May 18, 2020
1 parent 8e24454 commit 48b2b75
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/docusaurus-theme-classic/src/theme/Navbar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ function NavItem({items, position, className, ...props}) {
);
}

function MobileNavItem({items, className, ...props}) {
function MobileNavItem({items, position, className, ...props}) {
// Need to destructure position from props so that it doesn't get passed on.
const navLinkClassNames = (extraClassName, isSubList = false) =>
classnames(
'menu__link',
Expand Down

0 comments on commit 48b2b75

Please sign in to comment.