You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add the link and href attributes to the v-card component
Add an anchor tag in the v-card-text or v-card-subtitle or v-card-actions
You should now see double the contents, if not reload the page.
Expected behavior
The contents of v-card-text and v-card-actions should not be duplicated.
Screenshots
Additional context
This bug only appears in Nuxt so I thought this would be the repo to report this issue, if you reckon it's Vuetify's issue I will open the same issue in Vuetify's repo.
The anchor tag has to be in one of v-card child components (v-card-text, ...).
If you don't see the duplicate content, refresh the page.
The text was updated successfully, but these errors were encountered:
mostafa7904
changed the title
The contents of v-card children are duplicated when an anchor tag is added
[BUG]: The contents of v-card children are duplicated when an anchor tag is added
Jun 4, 2022
mostafa7904
changed the title
[BUG]: The contents of v-card children are duplicated when an anchor tag is added
[BUG] The contents of v-card children are duplicated when an anchor tag is added
Jun 4, 2022
Look in your developer console in the browser, its probably related to Hydration issues like mine was. The actual fix for me on Nuxt 3 was to disable ssr in my nuxt.config.js
Actually what I've noticed is that i can not put an anchor inside another anchor, some thing like that : <a> <div> some text </div> <a>Anchor</a> </a>
and if you see at the implementation of v-card you can figure that is an anchor element.
So, yeah to avoid that using span instead of divs with display: block` will help (#499 (comment))
All the packages version:
The contents of
v-card-*
is duplicated when the link and href attributes are present on the parentv-card
and there is an anchor tag inv-card-*
.To Reproduce
Github repo to reproduce the bug
Just run the project and you will see the bug.
Steps to reproduce the behavior:
v-card
element to your pagev-card
componentv-card-text
orv-card-subtitle
orv-card-actions
Expected behavior
The contents of
v-card-text
andv-card-actions
should not be duplicated.Screenshots
Additional context
This bug only appears in Nuxt so I thought this would be the repo to report this issue, if you reckon it's Vuetify's issue I will open the same issue in Vuetify's repo.
The anchor tag has to be in one of v-card child components (
v-card-text
, ...).If you don't see the duplicate content, refresh the page.
The text was updated successfully, but these errors were encountered: