Hello, I seem to be having an issue with updating a nested array dynamically. You can see the problem illustrated in the image below:
https://i.sstatic.net/IgkJ9.png
Below are the steps to reproduce the problem:
- Click on the
Add Likes
button to add likes for exampleNew Apple
- By default, my like is set to
Mango
- Click on the
Add about
button to add the next row (Mango does not appear), then click onAdd Likes
to observe the issue.
To enhance code readability, I have placed helper functions in a mixin file named mixin.js
Expectation: I should be able to add any number of Add about
and Add Likes
(with the default value being Mango
)
Here is my code snippet: https://codesandbox.io/s/musing-hawking-di4d3?file=/src/App.vue