From 48b2b753bb667863386e15537abc757f048fe264 Mon Sep 17 00:00:00 2001 From: Alexey Pyltsyn Date: Mon, 18 May 2020 06:21:36 +0300 Subject: [PATCH] fix(v2): remove invalid attr from mobile nav links (#2765) * fix(v2): remove invalid attr from mobile nav links * Update index.js Co-authored-by: Yangshun Tay --- packages/docusaurus-theme-classic/src/theme/Navbar/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/docusaurus-theme-classic/src/theme/Navbar/index.js b/packages/docusaurus-theme-classic/src/theme/Navbar/index.js index f1d0fcb4ef37..b3e1e1f78957 100644 --- a/packages/docusaurus-theme-classic/src/theme/Navbar/index.js +++ b/packages/docusaurus-theme-classic/src/theme/Navbar/index.js @@ -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',