mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-16 19:08:27 +01:00
SearchMixin: Fix selecting multiple remote values only showed the last
This commit is contained in:
parent
409b2a4349
commit
be5125509e
@ -978,7 +978,7 @@ export const Et2WithSearchMixin = <T extends Constructor<LitElement>>(superclass
|
|||||||
// Remove remote options that aren't used
|
// Remove remote options that aren't used
|
||||||
let keepers = this._selected_remote.reduce((prev, current) =>
|
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.querySelectorAll(".remote" + keepers).forEach(o => o.remove());
|
||||||
target.childNodes.forEach((n) =>
|
target.childNodes.forEach((n) =>
|
||||||
|
Loading…
Reference in New Issue
Block a user