Et2Select: Deal with initial value of multiple set as CSV

This commit is contained in:
nathan 2022-06-17 11:41:29 -06:00
parent f2c57c5e75
commit cfce00f7ea

View File

@ -228,6 +228,12 @@ export class Et2Select extends Et2WithSearchMixin(Et2InvokerMixin(Et2WidgetWithS
this._set_invoker(attrs.expand_multiple_rows);
}
super.transformAttributes(attrs);
// Deal with initial value of multiple set as CSV
if(this.multiple && typeof this.value == "string")
{
this.value = this.value.length ? this.value.split(",") : [];
}
}
set expand_multiple_rows(rows)