From 402c07b2ae12ac2c6485b5f6c069b525e1d6e0d8 Mon Sep 17 00:00:00 2001 From: Agata Brok Date: Tue, 21 May 2024 11:23:49 +0200 Subject: [PATCH] Pills - value added to set; --- lib/ui/elements/pills.mjs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ui/elements/pills.mjs b/lib/ui/elements/pills.mjs index 5279ed8be1..4714b07cbf 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);