Skip to content

Multiple Editors in the same View #3088

Discussion options

You must be logged in to vote

I believe the issue experienced was due to using the array index as the key for the items loop. When using ordered numerical indexes, when removing an item, the following item assumes the same index as the item removed. Vue will not update a nested component in this case.

If a more unique or random key is used, everything should work as expected.

Example forked from the original sandbox

Relevant Vue docs: Maintaining State with key, Key API

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

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