I am doing Patch Value to set a value of a field. Currently using Reactive forms.
Setting patchValue works.
this.addressForm.patchValue({city:'Atlanta'});
Now when trying to clear/reset the field, patchvalue works only with 1 space
this.addressForm.patchValue({city:' '});
this.cdr.detectChanges();
it does not work with null or '' (0 space)
Is there a way to make ChangeDetection work with null?
Resources:
Angular FormGroup won't update it's value immediately after patchValue or setValue