Change v-model syntax

This commit is contained in:
Ramon Wenger 2023-02-16 10:06:38 +01:00
parent abf4da927e
commit 5576c21cb9
2 changed files with 4 additions and 4 deletions

View File

@ -6,12 +6,12 @@
>{{ label }}</label >{{ label }}</label
> >
<component <component
:value="value" :model-value="value"
:class="classes" :class="classes"
:data-cy="cyId" :data-cy="cyId"
:is="type" :is="type"
:id="id" :id="id"
@input="$emit('input', $event.target.value)" @update:modelValue="$emit('input', $event.target.value)"
/> />
</div> </div>
</template> </template>

View File

@ -2,11 +2,11 @@
<div class="input-with-label"> <div class="input-with-label">
<label class="input-with-label__label">{{ label }}</label> <label class="input-with-label__label">{{ label }}</label>
<input <input
:value="value" :model-value="value"
:placeholder="placeholder" :placeholder="placeholder"
data-cy="input-with-label-input" data-cy="input-with-label-input"
class="skillbox-input" class="skillbox-input"
@input="$emit('input', $event.target.value)" @change:modelValue="$emit('input', $event.target.value)"
/> />
</div> </div>
</template> </template>