Skip to content
Snippets Groups Projects
Commit b30b0cb5 authored by rhenck's avatar rhenck
Browse files

Fix first emitted value in form control

parent c7258685
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,7 @@ export abstract class FormElementComponent extends ElementComponent implements O
this.elementFormControl.valueChanges
.pipe(
takeUntil(this.ngUnsubscribe),
startWith([this.elementModel.value, this.elementModel.value]),
startWith(this.elementModel.value),
pairwise()
)
.subscribe(([prevValue, nextValue] : [string | number | boolean | undefined, string | number | boolean]) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment