mirror of
https://github.com/IT4Change/gradido.git
synced 2026-01-20 20:01:31 +00:00
Validates immediately so that the defaultValue is checked in the validator.
This commit is contained in:
parent
a4aabfc369
commit
119f9e9734
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user