Fix some submit issues.

This commit is contained in:
James Cole
2021-04-09 07:03:19 +02:00
parent 94d9b78a33
commit e614427925
9 changed files with 17 additions and 11 deletions

View File

@@ -70,7 +70,9 @@
<div class="text-xs d-none d-lg-block d-xl-block">
&nbsp;
</div>
<button class="btn btn-outline-primary btn-block" @click="addTransaction"><i class="far fa-clone"></i> {{ $t('firefly.add_another_split') }}
<button type="button" class="btn btn-outline-primary btn-block" @click="addTransactionArray"><i class="far fa-clone"></i> {{
$t('firefly.add_another_split')
}}
</button>
</div>
<div class="col">
@@ -224,6 +226,10 @@ export default {
'resetTransactions',
]
),
addTransactionArray: function (event) {
event.preventDefault();
this.addTransaction();
},
/**
* Removes a split from the array.
*/