Skip to content

Commit 39fae2a

Browse files
committed
fix: enforce non-negative currency inputs
1 parent 84d3be6 commit 39fae2a

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/components/applicationDetail/ApplicationTarget.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const handleRemoveTarget = async () => {
7373
v-model="targetModel.target"
7474
:options="targetOptions"
7575
label="対象者" />
76-
<BaseNumberInput v-model="targetModel.amount" label="金額">
76+
<BaseNumberInput v-model="targetModel.amount" label="金額" :min="0">
7777
<span class="mt-auto mb-2 ml-3 text-2xl font-bold text-text-secondary">
7878
¥
7979
</span>

src/components/newApplication/NewApplicationTargets.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function handleRemoveTarget(index: number) {
2727
:options="userOptions"
2828
class="grow"
2929
label="払い戻し対象者" />
30-
<BaseNumberInput v-model="target.amount" label="金額">
30+
<BaseNumberInput v-model="target.amount" label="金額" :min="0">
3131
<span
3232
class="mt-auto mb-2 ml-3 text-2xl font-bold text-text-secondary">
3333
¥

src/pages/NewPartitionPage.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ watch(isUnspecifiedBudget, newVal => {
3939
v-model="partition.budget"
4040
label="予算"
4141
required
42+
:min="0"
4243
:readonly="isUnspecifiedBudget">
4344
<span class="mt-auto mb-2 ml-3 text-2xl font-bold text-text-secondary">
4445
¥

0 commit comments

Comments
 (0)