Skip to content

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

Open
RaduRaileanu wants to merge 1 commit into
vuejs:mainfrom
RaduRaileanu:main
Open

fix: v-if nested in a v-for template tag#218
RaduRaileanu wants to merge 1 commit into
vuejs:mainfrom
RaduRaileanu:main

Conversation

@RaduRaileanu

@RaduRaileanu RaduRaileanu commented Sep 24, 2023

Copy link
Copy Markdown

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
Copy Markdown

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

@BigBlueHat

Copy link
Copy Markdown

This seems related to #219

Curious if it'll ever be merged.

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.

4 participants