diff --git a/sharedComponents/input/input.component.ts b/sharedComponents/input/input.component.ts index cfcae9d5..df298e09 100644 --- a/sharedComponents/input/input.component.ts +++ b/sharedComponents/input/input.component.ts @@ -478,7 +478,7 @@ export class InputComponent implements OnInit, OnDestroy, AfterViewInit, OnChang ngOnChanges(changes: SimpleChanges) { if (this.formControl) { - if (changes.value) { + if (changes.value && changes.value.currentValue !== changes.value.previousValue) { this.formControl.setValue(this.value); } if (changes.validators) { @@ -826,6 +826,7 @@ export class InputComponent implements OnInit, OnDestroy, AfterViewInit, OnChang resetValue(event: any) { event.stopPropagation(); + console.log(1) this.formControl.setValue(''); this.focus(true, event); }