iamstevendao / vue-tel-input

International Telephone Input with Vue
https://iamstevendao.com/vue-tel-input/
MIT License
813 stars 340 forks source link

Only Countries does not work #166

Closed nezaboravi closed 4 years ago

nezaboravi commented 4 years ago

Hi,

<vue-tel-input
                                                :onlyCountries="['AU', 'BR']"
                                                wrapperClasses="h-12 border-b-1 border-red-500 w-96"
                                                mode="international"
                                                autocomplete="username"
                                                inputClasses="w-full"
                                                name="tel"
                                                :value="{{json_encode($user->tel)}}"
                                            />

It shows all countries, regardless. This is in laravel blade view. Tried to set default settings in app.js like so:


import VueTelInput from 'vue-tel-input'

Vue.use(VueTelInput, [{
    onlyCountries: ['AU', 'BR']
}])

It does not work too, it shows all countries.

imjonos commented 4 years ago

I have this issue too

iamstevendao commented 4 years ago

Should be fixed in v4.4.0