Fix rel attribute of external links (#8642)

This commit is contained in:
Nicola Krumschmidt
2021-10-08 16:25:29 +02:00
committed by GitHub
parent fc87c0b662
commit fe1ae5c5db
3 changed files with 66 additions and 66 deletions

View File

@@ -3,7 +3,6 @@
<slot name="prepend-outer" />
<component
:is="component"
:ref="component === 'a' ? 'noopener noreferer' : undefined"
v-focus="autofocus"
:download="download"
class="button"
@@ -27,6 +26,7 @@
:to="to !== '' ? to : undefined"
:href="href"
:target="component === 'a' ? '_blank' : undefined"
:rel="component === 'a' ? 'noopener noreferrer' : undefined"
@click="onClick"
>
<span class="content" :class="{ invisible: loading }">