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

UNavigationMenu I'm facing an issue with the collapse functionality of my nested navigation menu. #3069

Open
richard-hernandez-dev opened this issue Jan 10, 2025 · 0 comments
Labels
bug Something isn't working triage v3 #1289

Comments

@richard-hernandez-dev
Copy link

Environment

Is this bug related to Nuxt or Vue?

Nuxt

Version

v3.0.0-alpha.10

Reproduction

https://codesandbox.io/p/devbox/quizzical-wood-ntyxty

Description

when a child item at the second level has more than three levels of nested children, the collapse button for that second-level item stops working.

I'm using the following code snippet:
Is this a known limitation of the UNavigationMenu component, or could it be a bug?

I would greatly appreciate any guidance on how to resolve this issue and ensure the collapse
TypeScript

<script setup lang="ts">
  const items = ref([
    {
      label: 'Home',
      icon: 'i-tabler-home',
      description: 'Fully styled and customizable components for Nuxt.',
      children: [
        {
          label: 'Introduction 2',
          description: 'Fully styled and customizable components for Nuxt.',
          icon: 'i-lucide-house',
          children: [
            {
              label: 'Getting Started 3',
              description: 'Learn how to get started with Reka UI.',
              icon: 'i-tabler-star',
              to: '/',
            },
            {
              label: 'Installation 3',
              description: 'Learn how to get started with Reka UI in your Nuxt project.',
              icon: 'i-lucide-house',
              to: '/',
            },
          ],
        },
      ],
    },
  ])
</script>

<template>
  <UNavigationMenu
    orientation="vertical"
    :items="links"
    color="neutral"
    :ui="{
      link: 'group relative flex items-center gap-2 px-3 py-2 font-bold rounded-md text-md focus:outline-none focus-visible:outline-none dark:focus-visible:outline-none focus-visible:before:ring-inset focus-visible:before:ring-2 focus-visible:before:ring-primary-500 dark:focus-visible:before:ring-primary-400 before:absolute before:inset-px before:rounded-md disabled:cursor-not-allowed disabled:opacity-75',
    }"
  />
</template>

Additional context

No response

Logs

@richard-hernandez-dev richard-hernandez-dev added bug Something isn't working triage v3 #1289 labels Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage v3 #1289
Projects
None yet
Development

No branches or pull requests

1 participant