Et2Select: It was impossible to have "," in an option value, as it would get split by set_value()

see a9d2a3972c
This commit is contained in:
nathan 2023-04-03 14:55:04 -06:00
parent 6194c15b91
commit 98ae5aac1c

View File

@ -464,7 +464,7 @@ export class Et2Select extends Et2WithSearchMixin(Et2WidgetWithSelect)
set_value(val : string | string[] | number | number[])
{
if(typeof val === 'string' && val.indexOf(',') !== -1 && (this.multiple || val.length >= 3))
if(typeof val === 'string' && val.indexOf(',') !== -1 && this.multiple)
{
val = val.split(',');
}