Skip to content

Commit 33f977c

Browse files
docs(form-field): use value getter when returning form data (#18609)
1 parent 99d3e12 commit 33f977c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components-examples/material-experimental/mdc-form-field/mdc-form-field-custom-control/form-field-custom-control-example.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export class MyTelInput implements ControlValueAccessor, MatFormFieldControl<MyT
147147
}
148148

149149
_handleInput(): void {
150-
this.onChange(this.parts.value);
150+
this.onChange(this.value);
151151
}
152152

153153
static ngAcceptInputType_disabled: boolean | string | null | undefined;

src/components-examples/material/form-field/form-field-custom-control/form-field-custom-control-example.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export class MyTelInput implements ControlValueAccessor, MatFormFieldControl<MyT
147147
}
148148

149149
_handleInput(): void {
150-
this.onChange(this.parts.value);
150+
this.onChange(this.value);
151151
}
152152

153153
static ngAcceptInputType_disabled: boolean | string | null | undefined;

0 commit comments

Comments
 (0)