@seniorsistemas/angular-components 16.3.2 → 16.3.3

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.
@@ -2222,7 +2222,12 @@
2222
2222
  this.onSearchRequest.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function () { return (_this.loading = true); });
2223
2223
  this.onSelect.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function () { return _this.onChange(_this.value); });
2224
2224
  this.onUnselect.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function () { return _this.onChange(_this.value); });
2225
- this.onClear.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function () { return !_this.multiple && _this.onChange(); });
2225
+ this.onClear.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function () {
2226
+ if (_this.multiple || !_this.value) {
2227
+ return;
2228
+ }
2229
+ _this.onChange(null);
2230
+ });
2226
2231
  this.onFocus.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function () {
2227
2232
  _this.onTouched();
2228
2233
  });