Skip to content
Snippets Groups Projects
Unverified Commit ba745ca9 authored by Claire's avatar Claire Committed by GitHub
Browse files

Fix media modal link button (#18877)

Fixes regression from #18697
parent 19f2f35b
No related branches found
No related tags found
No related merge requests found
......@@ -131,17 +131,9 @@ export default class IconButton extends React.PureComponent {
</React.Fragment>
);
if (href) {
return (
<a
href={href}
aria-label={title}
title={title}
target='_blank'
rel='noopener noreferrer'
className={classes}
style={style}
>
if (href && !this.prop) {
contents = (
<a href={href} target='_blank' rel='noopener noreferrer'>
{contents}
</a>
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment