petite-vue icon indicating copy to clipboard operation
petite-vue copied to clipboard

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

Open RaduRaileanu opened this issue 1 year ago • 1 comments

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>

RaduRaileanu avatar Sep 24 '23 10:09 RaduRaileanu

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

volkandkaya avatar Feb 07 '24 06:02 volkandkaya