Skip to content

v-show not working on <UButton>/<NuxtLink custom /> (with ssr: false or after hmr) #5987

@OrbisK

Description

@OrbisK

Environment

Operating system Linux 5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36
CPU Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz (8 cores)
Node.js version v20.19.1
nuxt/cli version 3.32.0
Package manager pnpm@8.15.6
Nuxt version 4.3.0
Nitro version 2.13.1
Builder vite@7.3.1
Config compatibilityDate, devtools
Modules -

Reproduction

https://stackblitz.com/edit/github-39jcwecp

https://stackblitz.com/edit/github-aatktsgz

Describe the bug

<UButton v-show="false">this should be hidden</UButton>.

<NuxtLink v-show="false" custom>this should be hidden</NuxtLink> does not hide the element. (style="display: none") has also no effect.

Additional context

This causes downstream bugs when using nuxt ui <UButton />

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingp1-highSignificant bug or highly requested featurev4#4488

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions