Skip to content

Commit

Permalink
✨ Feat(tenant): handle spaces in salary amount (#1474)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattboll authored Jul 25, 2024
1 parent eb3868b commit 3fbed0b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ function enrichFormData(formData: FormData) {
}
function setMonthlySum($event: any) {
document.value.monthlySum = Math.trunc($event.target.value);
document.value.monthlySum = Math.trunc($event.target.value.replace(/\s+/g, ''));
emit("update:modelValue", document.value);
updateMonthlySum();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
<Field
name="monthlySum"
v-slot="{ field, meta }"
v-model="financialDocument.monthlySum"
:value="financialDocument.monthlySum"
@input="financialDocument.monthlySum = $event.target.value.replace(/\s+/g, '')"
:rules="{
required: true,
regex: /^[0-9 ]+$/,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
<Field
name="monthlySum"
v-slot="{ field, meta }"
v-model="financialDocument.monthlySum"
:value="financialDocument.monthlySum"
@input="financialDocument.monthlySum = $event.target.value.replace(/\s+/g, '')"
:rules="{
required: true,
regex: /^[0-9 ]+$/,
Expand Down

0 comments on commit 3fbed0b

Please sign in to comment.