NuxtLink download="false" error

On render :download="false" actually becomes download="false"
<template>
<NuxtLink :to="linkMap[linkField.linktype]" :target="linkField.target" :download="linkField.linktype === 'asset'">
<slot />
</NuxtLink>
</template>

<script setup>
const { linkField } = defineProps({ linkField: Object })

const linkMap = {
url: linkField.url,
asset: linkField.url,
email: `mailto:${linkField.email}`,
story: linkField.story?.url,
}
</script>
<template>
<NuxtLink :to="linkMap[linkField.linktype]" :target="linkField.target" :download="linkField.linktype === 'asset'">
<slot />
</NuxtLink>
</template>

<script setup>
const { linkField } = defineProps({ linkField: Object })

const linkMap = {
url: linkField.url,
asset: linkField.url,
email: `mailto:${linkField.email}`,
story: linkField.story?.url,
}
</script>
3 Replies
Want results from more Discord servers?
Add your server