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
>
<component
:value="value"
:model-value="value"
:class="classes"
:data-cy="cyId"
:is="type"
:id="id"
@input="$emit('input', $event.target.value)"
@update:modelValue="$emit('input', $event.target.value)"
/>
</div>
</template>

View File

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