petite-vue
petite-vue copied to clipboard
fix: v-if nested in a v-for template tag
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>
Ran into this issue multiple times. I thought it was due to using reactive but clearly not.