From d5adcfaa8a0dcafeb0d0dea8326f6f603c24247d Mon Sep 17 00:00:00 2001 From: Leonardo Pineda Date: Mon, 22 Jun 2020 02:02:24 -0400 Subject: [PATCH] fix onClick this._onChance is not a function --- src/components/rating.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/rating.ts b/src/components/rating.ts index 032d1d1..6e4796b 100644 --- a/src/components/rating.ts +++ b/src/components/rating.ts @@ -55,7 +55,7 @@ export class RatingComponent implements ControlValueAccessor { @Output() rateChange: EventEmitter = new EventEmitter(); hoverRate: number; - _onChange: Function; + _onChange: Function = (_: any) => {}; onClick(rate) { this.rate = rate;