Skip to content

v-for adding empty text node at start and at end of the loop. #8705

Discussion options

You must be logged in to vote

This is normal. The empty nodes at the beginning and end are anchor nodes for the Fragment created by v-for directive. They are used as reference elements when inserting or modifying current child nodes. You can find the related code in this GitHub link

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by thekubilay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants