Validates immediately so that the defaultValue is checked in the validator.

This commit is contained in:
elweyn 2022-03-11 10:50:55 +01:00
parent a4aabfc369
commit 119f9e9734

View File

@ -4,6 +4,7 @@
:rules="rules"
:name="name"
v-slot="{ errors, valid, validated, ariaInput, ariaMsg }"
immediate
>
<b-form-group :label="label" :label-for="labelFor">
<b-form-input
@ -58,5 +59,10 @@ export default {
if (this.value !== this.currentValue) this.currentValue = this.value
},
},
mounted() {
if (this.defaultValue !== undefined) {
this.$emit('input', this.currentValue)
}
},
}
</script>