Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only Countries does not work #166

Closed
nezaboravi opened this issue Jan 25, 2020 · 2 comments
Closed

Only Countries does not work #166

nezaboravi opened this issue Jan 25, 2020 · 2 comments

Comments

@nezaboravi
Copy link

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
Copy link

imjonos commented Mar 19, 2020

I have this issue too

@iamstevendao
Copy link
Owner

Should be fixed in v4.4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants