diff --git a/api/js/etemplate/Et2Select/SearchMixin.ts b/api/js/etemplate/Et2Select/SearchMixin.ts index bfd0d26006..df0ff9a0f5 100644 --- a/api/js/etemplate/Et2Select/SearchMixin.ts +++ b/api/js/etemplate/Et2Select/SearchMixin.ts @@ -378,7 +378,8 @@ export const Et2WithSearchMixin = >(superclass if(changedProperties.has("value") && this.value) { // Overridden to add options if allowFreeEntries=true - if(this.allowFreeEntries && typeof this.value == "string" && !this.select_options.find(o => o.value == this.value && !o.class.includes('remote'))) + if(this.allowFreeEntries && typeof this.value == "string" && !this.select_options.find(o => o.value == this.value && + (!o.class || o.class && !o.class.includes('remote')))) { this.createFreeEntry(this.value); }