2.2.6
Reproduction linkhttps://codepen.io/Rask/pen/GmZedP
Steps to reproduceSee Codepen. Create a component with a slot
repeated over v-for
and name
d with the index, then render the slot elements in the parent component using matching indices. Set the index to be 0..n
integers (i.e. a non-associative array).
All elements that are rendered with v-for
and slot index should be rendered properly from the parent component data.
The very first element defined with v-for
is somehow skipped when rendering.
I'm building a modular repeater field where you can add and remove items which are synced via basic events. The items are slotted in via item indices which are in sync by setting the slot index inside the custom component when rendered inside the parent.
Can this be related to 0-based indices or something? When I replace the slot
name
with :name="'item' index"
the rendering works as expected.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4