Hi,
I'm trying this component for one of my project.
I've followed one of the example that use this component in conjunction with the field-object, and following that example, in my schema I've an "items.default: {}".
Doing that, I've found a strange behavior: When I have more than once instance of the object, they are all referring to the same default object, so the similar fields are compiled with the same values in all the instances of the component. For example, if you have a text input in the schema of the field-object, all those text input will share the same values.
Looking at the code of the field-array.vue, I see that you're assigning the same object and pushing it to the value array (around line 89), shouldn't be deep cloned? So that every time there's a new instance of the object and not a reference to the same.
Hi, I'm trying this component for one of my project. I've followed one of the example that use this component in conjunction with the field-object, and following that example, in my schema I've an "items.default: {}".
Doing that, I've found a strange behavior: When I have more than once instance of the object, they are all referring to the same default object, so the similar fields are compiled with the same values in all the instances of the component. For example, if you have a text input in the schema of the field-object, all those text input will share the same values.
Looking at the code of the field-array.vue, I see that you're assigning the same object and pushing it to the value array (around line 89), shouldn't be deep cloned? So that every time there's a new instance of the object and not a reference to the same.
Thanks for your work! Daniele