slick-components 4.4.27 → 4.4.28

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.
@@ -53,7 +53,7 @@ class SlickInitService {
53
53
  SlickInitService.getParams().errorLog = errorLog;
54
54
  }
55
55
  }
56
- SlickInitService.version = "4.4.27";
56
+ SlickInitService.version = "4.4.28";
57
57
  /** @nocollapse */ SlickInitService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SlickInitService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
58
58
  /** @nocollapse */ SlickInitService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SlickInitService });
59
59
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SlickInitService, decorators: [{
@@ -7777,10 +7777,11 @@ class SlickStarRatingComponent {
7777
7777
  }
7778
7778
  // this is the initial value set to the component
7779
7779
  writeValue(obj) {
7780
- if (obj) {
7780
+ if (obj)
7781
7781
  this.ratingValue = obj - 1;
7782
- this.generateStars();
7783
- }
7782
+ else
7783
+ this.ratingValue = -1;
7784
+ this.generateStars();
7784
7785
  }
7785
7786
  // registers 'fn' that will be fired when changes are made
7786
7787
  // this is how we emit the changes back to the form