Skip to content

Beautiful Open-Source Form Builder

fix phone input (#294)

formsdev4f56867d752d
diff --git a/client/components/forms/PhoneInput.vue b/client/components/forms/PhoneInput.vue
index 3a0239266..8088d1bba 100644
--- a/client/components/forms/PhoneInput.vue
+++ b/client/components/forms/PhoneInput.vue
@@ -11,7 +11,7 @@
:data="countries"
:disabled="(disabled || countries.length===1)?true:null" :searchable="true" :search-keys="['name']" :option-key="'code'" :color="color"
:has-error="hasValidation && form.errors.has(name)"
- :placeholder="'Select a country'" :uppercase-labels="true" :theme="theme" @change="onChangeCountryCode"
+ :placeholder="'Select a country'" :uppercase-labels="true" :theme="theme" @update:model-value="onChangeCountryCode"
>
<template #option="props">
<div class="flex items-center space-x-2 hover:text-white">
@@ -46,7 +46,7 @@
<script>
import { inputProps, useFormInput } from './useFormInput.js'
import InputWrapper from './components/InputWrapper.vue'
-import countryCodes from '../../../data/country_codes.json'
+import countryCodes from '~/data/country_codes.json'
import CountryFlag from 'vue-country-flag-next'
import parsePhoneNumber from 'libphonenumber-js'