set function onReset on created components for clear form

This commit is contained in:
ogerly 2022-03-30 08:00:30 +02:00
parent 902d45e8d2
commit d013bd9de1

View File

@ -184,8 +184,7 @@ export default {
memo: this.form.memo,
})
},
onReset(event) {
event.preventDefault()
onReset() {
this.form.email = ''
this.form.amount = ''
this.form.memo = ''
@ -213,6 +212,7 @@ export default {
},
},
created() {
this.onReset()
this.form.email = this.recipientEmail ? this.recipientEmail : ''
},
}