Skip to content

Commit

Permalink
add enableFractions in form values (#6915)
Browse files Browse the repository at this point in the history
  • Loading branch information
loictrichaud committed Apr 12, 2021
1 parent ec67b29 commit be355cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/form/components/widgets/core/form-field.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ export class FormFieldModel extends FormWidgetModel {
}
break;
case FormFieldTypes.NUMBER:
this.form.values[this.id] = parseInt(this.value, 10);
this.form.values[this.id] = this.enableFractions ? parseFloat(this.value) : parseInt(this.value, 10);
break;
case FormFieldTypes.AMOUNT:
this.form.values[this.id] = this.enableFractions ? parseFloat(this.value) : parseInt(this.value, 10);
Expand Down

0 comments on commit be355cc

Please sign in to comment.