Adding default value to the InputEmail component.

This commit is contained in:
elweyn 2022-01-26 14:45:38 +01:00
parent a284e49f01
commit 0ca8e702d7

View File

@ -38,10 +38,11 @@ export default {
label: { type: String, default: 'Email' },
placeholder: { type: String, default: 'Email' },
value: { required: true, type: String },
defaultValue: { type: String },
},
data() {
return {
currentValue: '',
currentValue: this.defaultValue !== null ? this.defaultValue : '',
}
},
computed: {