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

[v3][UTooltip] UTooltip inside UModal causing error #2801

Open
hamonCordova opened this issue Nov 28, 2024 · 3 comments
Open

[v3][UTooltip] UTooltip inside UModal causing error #2801

hamonCordova opened this issue Nov 28, 2024 · 3 comments
Labels
bug Something isn't working v3 #1289

Comments

@hamonCordova
Copy link

hamonCordova commented Nov 28, 2024

Environment

Is this bug related to Nuxt or Vue?

Nuxt

Version

v3.0.0-alpha.9

Reproduction

Image

Image

 <UTooltip :delay-duration="0" :text="`R$ ${transactionCost.brl}`">
    <UIcon class="text-yellow-500 text-xs" name="i-lucide-coins" />
    <p class="text-neutral-200 text-xs">
      {{ transactionCost.credits }}
    </p>
</UTooltip>
<NuxtLayout>
  <UApp :toaster="{ position: 'top-right' }">
     <NuxtPage />
 </UApp>
</NuxtLayout>

Description

The app.vue is already using the UApp. When I try to add a UTooltip inside the modal, it throw an error.

Additional context

No response

Logs

Uncaught (in promise) Error: Injection `Symbol(TooltipProviderContext)` not found. Component must be used within `TooltipProvider`
@hamonCordova hamonCordova added bug Something isn't working triage v3 #1289 labels Nov 28, 2024
@hamonCordova hamonCordova changed the title [v3][UTooltip] UTooltip inside UModal causing error [v3][UTooltip] UTooltip inside UModal causing error Nov 28, 2024
Copy link
Member

The UApp component should wrap your app, above the NuxtLayout and the UTooltip: https://ui3.nuxt.dev/components/app

@hamonCordova
Copy link
Author

hamonCordova commented Nov 29, 2024

The UApp component should wrap your app, above the NuxtLayout and the UTooltip: https://ui3.nuxt.dev/components/app

Same problem. I did that and the problem is not solved.
I didn't find any template for reproducing the error in CodeSandbox.

@benjamincanac benjamincanac reopened this Nov 29, 2024
Copy link
Member

Could you provide a github 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 v3 #1289
Projects
None yet
Development

No branches or pull requests

2 participants