Better event.

This commit is contained in:
James Cole 2021-02-23 06:30:08 +01:00
parent 978c56b16b
commit b151ec0c85
No known key found for this signature in database
GPG Key ID: B5669F9493CDE38D
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@
v-on:set-foreign-amount="storeField($event)"
v-on:set-date="storeDate($event)"
v-on:set-time="storeTime($event)"
v-on:set-custom-date="storeCustomDate(index, $event)"
v-on:set-custom-date="storeField($event)"
v-on:set-budget="storeBudget(index, $event)"
v-on:set-category="storeCategory(index, $event)"
v-on:set-bill="storeBill(index, $event)"

View File

@ -84,7 +84,7 @@ export default {
return this.dates[field] ?? '';
},
setFieldValue(event, field) {
this.$emit('set-custom-date', { field: field, date: event.target.value});
this.$emit('set-custom-date', {field: field, index: this.index, value: event.target.value});
},
}
}