diff --git a/api/js/etemplate/Et2Select/SearchMixin.ts b/api/js/etemplate/Et2Select/SearchMixin.ts index b7a609e6a2..7c2549c15e 100644 --- a/api/js/etemplate/Et2Select/SearchMixin.ts +++ b/api/js/etemplate/Et2Select/SearchMixin.ts @@ -396,7 +396,7 @@ export const Et2WithSearchMixin = dedupeMixin((superclass) => let entries = cleanSelectOptions(results); // Add a "remote" class so we can tell these apart from any local results - entries.forEach((entry) => entry.class = entry.class += "remote"); + entries.forEach((entry) => entry.class = (entry.class || "") + " remote"); let target = this._optionTargetNode || this; if(target)