Fix doubled options with freeEntries

This commit is contained in:
nathan 2023-09-19 16:04:19 -06:00
parent a4b0a2a1f0
commit cdd13e5109

View File

@ -696,7 +696,9 @@ export class Et2Select extends Et2WithSearchMixin(Et2WidgetWithSelect)
protected handleValueChange(e : SlChangeEvent)
{
const old_value = this.__value;
this.__value = this.select.value;
this.__value = Array.isArray(this.select.value) ?
this.select.value.map(e => e.replaceAll("___", " ")) :
this.select.value.replaceAll("___", " ");
this.requestUpdate("value", old_value);
}