@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.
@@ -2051,7 +2051,12 @@ var LookupComponent = /** @class */ (function () {
2051
2051
  this.onSearchRequest.pipe(takeUntil(this.ngUnsubscribe)).subscribe(function () { return (_this.loading = true); });
2052
2052
  this.onSelect.pipe(takeUntil(this.ngUnsubscribe)).subscribe(function () { return _this.onChange(_this.value); });
2053
2053
  this.onUnselect.pipe(takeUntil(this.ngUnsubscribe)).subscribe(function () { return _this.onChange(_this.value); });
2054
- this.onClear.pipe(takeUntil(this.ngUnsubscribe)).subscribe(function () { return !_this.multiple && _this.onChange(); });
2054
+ this.onClear.pipe(takeUntil(this.ngUnsubscribe)).subscribe(function () {
2055
+ if (_this.multiple || !_this.value) {
2056
+ return;
2057
+ }
2058
+ _this.onChange(null);
2059
+ });
2055
2060
  this.onFocus.pipe(takeUntil(this.ngUnsubscribe)).subscribe(function () {
2056
2061
  _this.onTouched();
2057
2062
  });