Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vertical Navigation: unable to set 'active: true' without link 'to: ' path #988

Closed
McPizza0 opened this issue Nov 17, 2023 · 4 comments
Closed
Labels
bug Something isn't working

Comments

@McPizza0
Copy link

Environment

Operating System: Darwin
Node Version: v20.2.0
Nuxt Version: 3.8.1
CLI Version: 3.9.1
Nitro Version: 2.7.2
Package Manager: pnpm@8.10.5
Builder: -
User Config: modules, runtimeConfig, css, app, ui, colorMode, build, typescript, nitro, pinia, turnstile, security
Runtime Modules: @nuxt/devtools@1.0.2, @vueuse/nuxt@10.6.1, nuxt-security@1.0.0-rc.3, nuxt-prepare@0.2.1, @nuxtjs/turnstile@0.6.3, @pinia/nuxt@0.5.1, @pinia-plugin-persistedstate/nuxt@1.2.0, @nuxt/ui@2.10.0
Build Modules: -

Version

v2.1.0

Reproduction

https://stackblitz.com/edit/nuxt-ui-sgeaae?file=app.vue

Description

One of the props for the navigation items is active: true

This only sets the nav link to active when there is an accompanying to: prop

I would expect it to set the nav link to active regardless of other props

I am using the click: prop to set some values in a store, it would be great if I could which one is active

Additional context

No response

Logs

No response

@McPizza0 McPizza0 added the bug Something isn't working label Nov 17, 2023
@McPizza0
Copy link
Author

Looking deeper, it seems to be an issue from the link component itself

Copy link
Member

Thanks for the report! 😊

@Charlesq666
Copy link

Having the same issue, any update on this one?

Copy link
Member

@Charlesq666 This isssue has been closed 8 months ago, please open a new one with a reproduction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants