Prevent opening card dialog when link for URL is clicked. (#1037)

Co-authored-by: Jesús Espino <jespinog@gmail.com>
This commit is contained in:
kamre 2021-08-19 17:31:15 +07:00 committed by GitHub
parent b5d58060cf
commit 2520d2fa4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,6 +25,7 @@ const URLProperty = (props: Props): JSX.Element => {
href={Utils.ensureProtocol(props.value.trim())} href={Utils.ensureProtocol(props.value.trim())}
target='_blank' target='_blank'
rel='noreferrer' rel='noreferrer'
onClick={(event) => event.stopPropagation()}
> >
<LinkIcon/> <LinkIcon/>
</a> </a>