Skip to content

Commit

Permalink
Merge pull request GEOLYTIX#1267 from cityremade/pill_add_value
Browse files Browse the repository at this point in the history
Pills - value added to set;
  • Loading branch information
cityremade authored May 21, 2024
2 parents 4ae5637 + 402c07b commit 71c3db5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ui/elements/pills.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 71c3db5

Please sign in to comment.