@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.
@@ -15221,9 +15221,13 @@ var SelectButtonComponent = /** @class */ (function () {
15221
15221
  var _this = this;
15222
15222
  if (!value)
15223
15223
  return;
15224
- value.forEach(function (item) {
15225
- _this.activeItems.add(item);
15226
- });
15224
+ this.activeItems.clear();
15225
+ if (Array.isArray(value)) {
15226
+ value.forEach(function (item) { return _this.activeItems.add(item); });
15227
+ }
15228
+ else {
15229
+ this.activeItems.add(value);
15230
+ }
15227
15231
  };
15228
15232
  SelectButtonComponent.prototype.registerOnChange = function (onChange) {
15229
15233
  this.onChange = onChange;