Change v-model syntax
This commit is contained in:
parent
abf4da927e
commit
5576c21cb9
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue