-
Notifications
You must be signed in to change notification settings - Fork 338
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
Hydration issues - Nuxt 3/Vue 3 #1006
Comments
As a temporary solution, you can add the aria-id attribute |
Yes you can use ariaId prop to prevent using a random id for the |
Also is this caused by popper that are already open when they are rendered on the server? For example with |
Thanks, I will give the aria thing a try.
No, they aren't opened but let me double check that t confirm.
… On Jan 11, 2024, at 6:09 PM, Guillaume Chau ***@***.***> wrote:
Also is this caused by popper that are already open when they are rendered on the server? For example with :shown="true"
—
Reply to this email directly, view it on GitHub <#1006 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAAK3ILITTJDSC6KWYMWSMTYN7B6ZAVCNFSM6AAAAABBIFQFEKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBWHEYDANZXHA>.
You are receiving this because you authored the thread.
|
in Nuxt3 I used <ClientOnly>
<template #fallback>
<Item2Render />
</template>
<VTooltip>
<Item2Render />
<template #popper>
<PopperContent />
</template>
</VTooltip>
<ClientOnly> |
the above works for the
when using a |
This was useful for me, but it might not be the best approach as it causes the vuejs-accessibility's aria-props to throw errors at me. I wonder if there's another way to address this? |
I believe it's not a very good thing to generate id for every tooltip and dropdown manually.. |
Headless UI solved this problem with the new UseID function in Nuxt |
My soloution for the time being is this:
|
The VDropdown component from the floating-vue lib results in a hydration errors due to the way the lib edits the dom issue is reported: Akryum/floating-vue#1006 Workaround implemented as proposed in: Akryum/floating-vue#1006 (comment)
The VDropdown component from the floating-vue lib results in a hydration errors due to the way the lib edits the dom issue is reported: Akryum/floating-vue#1006 Workaround implemented as proposed in: Akryum/floating-vue#1006 (comment)
This just started showing up in the latest Nuxt 3.9, probably due to the Vue version bump but I'm not sure.
Getting a lot of Hydration attribute mismatch because the ID of the popper is different from SSR. Errors look like:
Not sure how to solve this or if it has any real impact at all.
The text was updated successfully, but these errors were encountered: