Fix media modal link button (#18877)

Fixes regression from #18697
This commit is contained in:
Claire 2022-08-25 04:30:53 +02:00 committed by GitHub
parent a79fb080b0
commit f3bad2e26f

View file

@ -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>
);