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

Temporary fix for number input fields and invalid values

parent a693b911
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,9 @@ export abstract class FormElementComponent extends ElementComponent implements O
pairwise()
)
.subscribe(([prevValue, nextValue] : [string | number | boolean | undefined, string | number | boolean]) => {
this.formValueChanged.emit({ id: this.elementModel.id, values: [prevValue, nextValue] });
if (nextValue != null) { // invalid input on number fields generates event with null TODO find a better solution
this.formValueChanged.emit({ id: this.elementModel.id, values: [prevValue, nextValue] });
}
});
}
......
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