angular icon indicating copy to clipboard operation
angular copied to clipboard

[Question] [Custom Components] Value prop as an array

Open smirnov-d opened this issue 4 years ago • 0 comments

Hi, there. I try to use a custom component with array of strings, but @input value changed to the string (first element of the array) after form submission. Could you please provide an example how to use a custom component with an array.

this.updateValue(['1','2','3']) ; 
// 'value' is [  "1", "2", "3" ];
submit form
// 'value' is  "1";

Also, when I try to provide the <formio ... [submission]="{ fieldName: ['string1', 'string2'] } " > the value prop in the component is equal to 'string1'

smirnov-d avatar Nov 05 '21 18:11 smirnov-d