Skip to content

Commit

Permalink
fix(rating): fix round up for decimal values (#5076) (#5608)
Browse files Browse the repository at this point in the history
Co-authored-by: dmitry-zhemchugov <44227371+dmitry-zhemchugov@users.noreply.github.com>
  • Loading branch information
2 people authored and valorkin committed Jan 24, 2020
1 parent bbb2817 commit bf0f78e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rating/rating.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export class RatingComponent implements ControlValueAccessor, OnInit {
}

reset(): void {
this.value = this.preValue;
this.value = Math.round(this.preValue);
this.changeDetection.markForCheck();
this.onLeave.emit(this.value);
}
Expand Down

0 comments on commit bf0f78e

Please sign in to comment.