I am not able to use patchValue on the input of a form group control. I have tried this :
<mat-form-field>
<mat-label>Duration (HH:MM)</mat-label>
<input matInput type="time" formControlName="durationCtrl">
</mat-form-field>
this.myGroup.get('durationCtrl').patchValue('20:20')
and this
this.myGroup.patchValue({
durationCtrl: "0:20"
})
I'm able to read from the form. When I read it after setting it manually, it returns a string in the format HH:MM, like "04:20". Is there anything I'm doing wrong?
Edit: turns out the issue is purely visual, the value of the control is what it's supposed to be but it does not display the corresponding value. Still a problem but now I have no idea how this can happen.