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

fix: v-if nested in a v-for template tag #218

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

RaduRaileanu
Copy link

@RaduRaileanu RaduRaileanu commented Sep 24, 2023

the fix permits nesting an element with a v-if attribute inside a template tag with a v-for attribute like so:

<template v-for="item in ['foo', 'bar', 'buzz']">
    <p v-if="item.startsWith('b')">{{ item }} </p>
</template>

@volkandkaya
Copy link

Ran into this issue multiple times. I thought it was due to using reactive but clearly not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants