Binding to umb-input-multiple-text-string
# help-with-umbraco
h
Can anyone point me in the right direction πŸ™‚ I am trying to bind an array of strings to the umb-input-multiple-text-string but not getting very far. This is what I have in my render
Copy code
<umb-input-multiple-text-string
    max=${5}
    min=${1}
    .items=${data.answers.map(a => a.value) ?? []}
>
</umb-input-multiple-text-string>
I just get an empty editor,
data.answers.map(a => a.value)
returns "yes","no","maybe"
m
Are you sure that the values are there when the element is first rendered? Might be that they are updated after the first render and that the element does not pick up the change?
h
yes, values are definitely there πŸ™‚
m
If you add something to the empty array that you are passing as a fallback, so [] would be [’hello’] what happens?
h
I'll give that a try πŸ™‚
9 Views