Fix selected value
This commit is contained in:
parent
06d881aa7f
commit
4ca9029dc9
|
@ -122,7 +122,9 @@
|
||||||
this={component}
|
this={component}
|
||||||
{options}
|
{options}
|
||||||
{autocomplete}
|
{autocomplete}
|
||||||
value={selectedValue}
|
value={selectedValue?.map(value =>
|
||||||
|
typeof value === "object" ? value._id : value
|
||||||
|
)}
|
||||||
on:change={multiselect ? multiHandler : singleHandler}
|
on:change={multiselect ? multiHandler : singleHandler}
|
||||||
id={fieldState.fieldId}
|
id={fieldState.fieldId}
|
||||||
disabled={fieldState.disabled}
|
disabled={fieldState.disabled}
|
||||||
|
|
Loading…
Reference in New Issue