Skip to content

Commit 80d82eb

Browse files
docs(module:form): fix form-register demo (#9459)
1 parent 800b6cf commit 80d82eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/form/demo/register.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export class NzDemoFormRegisterComponent implements OnInit, OnDestroy {
191191
confirmationValidator(control: AbstractControl): ValidationErrors | null {
192192
if (!control.value) {
193193
return { required: true };
194-
} else if (control.value !== this.validateForm.controls.password.value) {
194+
} else if (control.value !== control.parent!.value.password) {
195195
return { confirm: true, error: true };
196196
}
197197
return {};

0 commit comments

Comments
 (0)