Et2Select: Re-add accidentally removed chunk that sets initial value when initial value is an array

Fixes mail preview didn't show to/from addresses
This commit is contained in:
nathan 2022-09-15 08:49:36 -06:00
parent 1b72eb4a00
commit c8b6a5760b

View File

@ -450,6 +450,16 @@ export const Et2WithSearchMixin = <T extends Constructor<LitElement>>(superclass
{ {
this.createFreeEntry(this.value); this.createFreeEntry(this.value);
} }
else if(this.allowFreeEntries && this.multiple)
{
this.value.forEach((e) =>
{
if(!this._menuItems.find(o => o.value == e))
{
this.createFreeEntry(e);
}
});
}
} }
protected fix_bad_value() protected fix_bad_value()