| 1158 | |
| 1159 | it('should reset custom control view value when a pending undefined value is discarded', () => { |
| 1160 | @Component({selector: 'my-optional-fvc-input', template: ''}) |
| 1161 | class MyOptionalFvcInput implements FormValueControl<string | undefined> { |
| 1162 | readonly value = model<string | undefined>(); |
| 1163 | readonly touch = output<void>(); |
| 1164 | } |
| 1165 | |
| 1166 | @Component({ |
| 1167 | template: `<my-optional-fvc-input [formControl]="ctrl" />`, |