@seniorsistemas/angular-components 17.6.0 → 17.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15368,9 +15368,13 @@
15368
15368
  var _this = this;
15369
15369
  if (!value)
15370
15370
  return;
15371
- value.forEach(function (item) {
15372
- _this.activeItems.add(item);
15373
- });
15371
+ this.activeItems.clear();
15372
+ if (Array.isArray(value)) {
15373
+ value.forEach(function (item) { return _this.activeItems.add(item); });
15374
+ }
15375
+ else {
15376
+ this.activeItems.add(value);
15377
+ }
15374
15378
  };
15375
15379
  SelectButtonComponent.prototype.registerOnChange = function (onChange) {
15376
15380
  this.onChange = onChange;