From be5125509e4a6d8968027a49361c0799e4b7b7e7 Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 8 Dec 2022 10:24:49 -0700 Subject: [PATCH] SearchMixin: Fix selecting multiple remote values only showed the last --- api/js/etemplate/Et2Select/SearchMixin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/etemplate/Et2Select/SearchMixin.ts b/api/js/etemplate/Et2Select/SearchMixin.ts index eabf1c12bb..ec4fe0f830 100644 --- a/api/js/etemplate/Et2Select/SearchMixin.ts +++ b/api/js/etemplate/Et2Select/SearchMixin.ts @@ -978,7 +978,7 @@ export const Et2WithSearchMixin = >(superclass // Remove remote options that aren't used let keepers = this._selected_remote.reduce((prev, current) => { - return ":not([value='" + current.value.replace(/'/g, "\\\'") + "'])"; + return prev + ":not([value='" + current.value.replace(/'/g, "\\\'") + "'])"; }, ""); target.querySelectorAll(".remote" + keepers).forEach(o => o.remove()); target.childNodes.forEach((n) =>