Skip to content

Commit

Permalink
fix(opening): validate dom nesting, no anchor inside anchor
Browse files Browse the repository at this point in the history
  • Loading branch information
trollepierre committed Feb 23, 2022
1 parent 0a4e3d2 commit bbc2279
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/drive/web/modules/filelist/cells/FileName.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@ const FileName = ({
<CertificationsIcons attributes={attributes} />
</div>
) : (
<a
href={`/#${folderUrlToNavigate(attributes.dir_id)}`}
<span
className={styles['fil-file-path']}
onClick={ev => {
ev.preventDefault()
Expand All @@ -139,7 +138,7 @@ const FileName = ({
}}
>
<MidEllipsis text={attributes.displayedPath} />
</a>
</span>
))}
{!withFilePath &&
(isDirectory(attributes) || (
Expand Down

0 comments on commit bbc2279

Please sign in to comment.