diff --git a/lib/ui/elements/pills.mjs b/lib/ui/elements/pills.mjs index 5279ed8be..4714b07cb 100644 --- a/lib/ui/elements/pills.mjs +++ b/lib/ui/elements/pills.mjs @@ -52,6 +52,8 @@ export default (component = {}) => { if (typeof component.removeCallback === 'function') component.removeCallback(val, component.pills); }}>✕`) + if(!component.pills.has(val)) component.pills.add(val); // add to selection + // add pill component.container.append(pill);