fix(v2): fix error with required href attr of link in mobiles (#3607)

This commit is contained in:
Alexey Pyltsyn 2020-10-19 18:17:57 +03:00 committed by GitHub
parent 6cfadb89eb
commit e5448d9a96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -184,6 +184,7 @@ function NavItemMobile({
'menu__list-item--collapsed': collapsed,
})}>
<NavLink
role="button"
className={navLinkClassNames(className, true)}
{...props}
onClick={() => {

View file

@ -146,7 +146,8 @@ function Link({
// eslint-disable-next-line jsx-a11y/anchor-has-content
<a
href={targetLink}
{...(!isInternal && {target: '_blank', rel: 'noopener noreferrer'})}
{...(targetLinkUnprefixed &&
!isInternal && {target: '_blank', rel: 'noopener noreferrer'})}
{...props}
/>
) : (