Skip to content

Commit

Permalink
fix: add a fix for touched not being updated for reactive forms
Browse files Browse the repository at this point in the history
  • Loading branch information
InnaAtanasova committed Dec 14, 2023
1 parent 9e634c1 commit 9679e2a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export class GenericControlValueAccessor<ValueType = any>
return this._onChangeSet$.pipe(
filter(Boolean),
tap(() => this.onChange(val)),
tap(() => this.onTouched()),
map(() => val)
);
};
Expand Down

0 comments on commit 9679e2a

Please sign in to comment.