Skip to content

Commit ff701fe

Browse files
committed
Fix PhoneInput for vue3
1 parent 0f3d41d commit ff701fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/components/forms/PhoneInput.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
:data="countries"
1212
:disabled="(disabled || countries.length===1)?true:null" :searchable="true" :search-keys="['name']" :option-key="'code'" :color="color"
1313
:has-error="hasValidation && form.errors.has(name)"
14-
:placeholder="'Select a country'" :uppercase-labels="true" :theme="theme" @update:model-value="onChangeCountryCode"
14+
:placeholder="'Select a country'" :uppercase-labels="true" :theme="theme" @change="onChangeCountryCode"
1515
>
1616
<template #option="props">
1717
<div class="flex items-center space-x-2 hover:text-white">
@@ -29,7 +29,7 @@
2929
</v-select>
3030
<input v-model="inputVal" type="text" class="inline-flex-grow !border-l-0 !rounded-l-none" :disabled="disabled?true:null"
3131
:class="[theme.default.input, { '!ring-red-500 !ring-2': hasValidation && form.errors.has(name), '!cursor-not-allowed !bg-gray-200': disabled }]"
32-
:placeholder="placeholder" :style="inputStyle" @update:model-value="onInput"
32+
:placeholder="placeholder" :style="inputStyle" @input="onInput"
3333
>
3434
</div>
3535

0 commit comments

Comments
 (0)