Skip to content

Commit

Permalink
fix: initial value snapshot of tags input
Browse files Browse the repository at this point in the history
  • Loading branch information
fengtianze committed Apr 26, 2020
1 parent 82e9f12 commit d9c12a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/input/tags-input/tags-input.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ export class TagsInputComponent extends CommonFormControl<string[]> {
@ViewChild('inputValueMirror', { static: true })
inputValueMirror: ElementRef;

snapshot = {
value: [] as string[],
};

value$: Observable<string[]> = this.value$$.asObservable().pipe(
tap(value => {
this.snapshot.value = value;
Expand Down

0 comments on commit d9c12a7

Please sign in to comment.