mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-27 20:02:50 +00:00
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 <tay.yang.shun@gmail.com>
This commit is contained in:
parent
8e24454154
commit
48b2b753bb
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in New Issue