AvatarGroup & Tooltip
Environment
- Operating System: Linux
- Node Version: v18.20.6
- Nuxt Version: 3.17.4
- CLI Version: 3.26.2
- Nitro Version: 2.12.0
- Package Manager: [email protected]
- Builder: -
- User Config: ssr, compatibilityDate, devtools, css, modules, gtag, nitro, vite, app, icon, ui, uiPro, i18n, runtimeConfig, plugins, dayjs, hooks, sentry, sourcemap
- Runtime Modules: @nuxtjs/[email protected], @nuxt/[email protected], @nuxt/[email protected], @nuxtjs/[email protected], [email protected], [email protected], @sentry/nuxt/[email protected]
- Build Modules: -
Is this bug related to Nuxt or Vue?
Nuxt
Package
v3.x
Version
3.17.4
Reproduction
<UAvatarGroup
v-if="sharedUsers.length"
:max="3"
size="sm"
@click="isShareProjectModalOpen = true"
>
<UTooltip
v-for="user in sharedUsers"
:key="user.emailAddress"
:text="user.fullName ?? user.emailAddress"
:delay-duration="0"
>
<UAvatar
:src="user.avatar ?? undefined"
:alt="user.fullName ?? user.emailAddress"
/>
</UTooltip>
</UAvatarGroup>
<ShareProjectModal
v-if="project"
v-model:open="isShareProjectModalOpen"
:project="project"
:template-name="project.template.name"
:primary-document-references="project.template.primary_document_reference?.map(d => d.name) || []"
/>
SharedModal
<UModal
v-model:open="isOpen"
:ui="{
content: 'max-w-124',
footer: 'justify-between',
body: 'flex flex-col gap-4 px-0 sm:px-0',
}"
>
</UModal>
Description
Hi, we are using v4 with an avatarGroup tooltip
<UAvatarGroup
v-if="sharedUsers.length"
:max="3"
size="sm"
@click="isShareProjectModalOpen = true"
>
<UTooltip
v-for="user in sharedUsers"
:key="user.emailAddress"
:text="user.fullName ?? user.emailAddress"
:delay-duration="0"
>
<UAvatar
:src="user.avatar ?? undefined"
:alt="user.fullName ?? user.emailAddress"
/>
</UTooltip>
</UAvatarGroup>
We have few modal opening on the same page however we have inconsistency with the tooltip when playing around opening UModal on the page the tooltip would stop working. has anyone encounter such issue?
Additional context
No response
Logs
Would you be able to provide a reproduction? 🙏
More info
Why do I need to provide a reproduction?
Reproductions make it possible for us to triage and fix issues quickly with a relatively small team. It helps us discover the source of the problem, and also can reveal assumptions you or we might be making.
What will happen?
If you've provided a reproduction, we'll remove the label and try to reproduce the issue. If we can, we'll mark it as a bug and prioritise it based on its severity and how many people we think it might affect.
If needs reproduction labeled issues don't receive any substantial activity (e.g., new comments featuring a reproduction link), they will be closed automatically after a while. That's not because we don't care! At any point, feel free to comment with a reproduction and we'll reopen it.
How can I create a reproduction?
We have templates to create a minimal reproduction:
- Nuxt: https://codesandbox.io/p/devbox/nuxt-ui3-n3sxks
- Vue: https://codesandbox.io/p/devbox/nuxt-ui3-vue-4h5gqn
Please ensure that the reproduction is as minimal as possible. See more details in our guide.
You might also find these other articles interesting and/or helpful:
This seems like a duplicate of https://github.com/nuxt/ui/issues/4274 but I would need to see a repro to be sure.
@pierre-sigwalt Perhaps you could use the workaround I've described in https://github.com/nuxt/ui/issues/4274#issuecomment-2942713877 for the time being and see if that helps.
Hi! 👋 This issue has been open for 60 days without activity and will be closed in 7 days. Please comment if it's still relevant.
Hi! 👋 This issue was automatically closed due to inactivity. If it's still relevant with the latest Nuxt UI version, feel free to reopen or create a new issue.