Fix media modal link button (#18877)

Fixes regression from #18697
pull/1827/head
Claire 2022-08-25 04:30:53 +02:00 committed by GitHub
parent 19f2f35b33
commit ba745ca99a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 11 deletions

View File

@ -131,17 +131,9 @@ export default class IconButton extends React.PureComponent {
</React.Fragment> </React.Fragment>
); );
if (href) { if (href && !this.prop) {
return ( contents = (
<a <a href={href} target='_blank' rel='noopener noreferrer'>
href={href}
aria-label={title}
title={title}
target='_blank'
rel='noopener noreferrer'
className={classes}
style={style}
>
{contents} {contents}
</a> </a>
); );