Skip to content

Commit

Permalink
fix: form item may won't show error hint
Browse files Browse the repository at this point in the history
  • Loading branch information
fengtianze committed Nov 9, 2020
1 parent bd8742d commit 6fc6ebe
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/form/form-item/form-item.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,12 @@ export class FormItemComponent implements AfterContentInit, OnDestroy {
return (this.parentForm
? combineLatest([
control.statusChanges.pipe(startWith(control.status)),
merge(this.parentForm.statusChanges, this.parentForm.ngSubmit),
merge(
this.parentForm.statusChanges.pipe(
startWith(this.parentForm.status),
),
this.parentForm.ngSubmit,
),
]).pipe(map(([status]: string[]) => status))
: control.statusChanges
).pipe(
Expand Down

0 comments on commit 6fc6ebe

Please sign in to comment.