x-if templates no longer work inside an x-for component #1505
-
After updating to the latest version, 3.0.5, it seems several of my components have broken because I can no longer use nested templates inside of an <template x-for="(step, sindex) in steps" :key="'step_' + (sindex + 1)">
<div>
<div x-text="step"></div>
<template x-for="(item, itindex) in itemsByStep[step]" :key="'item_' + (itindex + 1)">
<div>
<template x-if="step !== COMPLETE || (step === COMPLETE && itindex < 5)">
<div>
<div x-text="item.title"></div>
</div>
</template>
<template x-if="step === COMPLETE && itindex === 5">
<div @click="handleViewSelect(LIST)">View All</div>
</template>
</div>
</template>
</div>
</template> What happened in version 2.8.2 was it would properly render the elements within the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Looks like this has been resolved in 3.1.0; I discovered this through two other issues mentioning this bug: #1473, #1473 |
Beta Was this translation helpful? Give feedback.
Looks like this has been resolved in 3.1.0; I discovered this through two other issues mentioning this bug: #1473, #1473