-
Notifications
You must be signed in to change notification settings - Fork 985
Closed
Labels
bugSomething isn't workingSomething isn't workingp2-mediumNotable issue or useful enhancementNotable issue or useful enhancementv3#1289#1289vue
Description
Environment
- Operating System: Linux
- Node Version: v20.19.1
- Nuxt Version: -
- CLI Version: 3.28.0
- Nitro Version: -
- Package Manager: [email protected]
- Builder: -
- User Config: -
- Runtime Modules: -
- Build Modules: -
Is this bug related to Nuxt or Vue?
Vue
Package
v4.x
Version
v4.2.0
Reproduction
https://stackblitz.com/edit/vitejs-vite-9khbefry?file=src/App.vue (please open in blink-based browsers, something in the reproduction webcontainer really does not want to run in firefox)
<template>
<UApp>
<UNavigationMenu
:items="[
{
label: 'Nuxt UI',
href: 'https://ui.nuxt.com',
target: '_self',
},
]"
/>
</UApp>
</template>Description
NavigationMenu is passed an item with a set href and target set to _self. Rendered <a> ignores passed target and sets it to _blank:
Additional context
No response
Logs
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingp2-mediumNotable issue or useful enhancementNotable issue or useful enhancementv3#1289#1289vue