forked from extern/egroupware
Et2Select: Deal with initial value of multiple set as CSV
This commit is contained in:
parent
f2c57c5e75
commit
cfce00f7ea
@ -228,6 +228,12 @@ export class Et2Select extends Et2WithSearchMixin(Et2InvokerMixin(Et2WidgetWithS
|
|||||||
this._set_invoker(attrs.expand_multiple_rows);
|
this._set_invoker(attrs.expand_multiple_rows);
|
||||||
}
|
}
|
||||||
super.transformAttributes(attrs);
|
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)
|
set expand_multiple_rows(rows)
|
||||||
|
Loading…
Reference in New Issue
Block a user