gehrj / vue-country-region-select

A vue country select and a vue region select component that is very easy to use and the region select will update automatically depending on your country selected. They can also be used stand alone.
89 stars 84 forks source link

#30

Closed 2O23 closed 3 months ago

gehrj commented 4 years ago

@4o4forbidden are you setting this to true for both country and region component? When setting countryName to true on the country component you must also set it to true on the region component to have them stay in sync.

zahidmiah commented 4 years ago

@4o4forbidden set the property in this way country-Name="true"

gehrj commented 4 years ago

@4o4forbidden can you share how you are using this?

gehrj commented 4 years ago

@4o4forbidden something similar to how the individual in #26 shared their code via sandbox would be the best

Elgayar commented 3 years ago

@4o4forbidden If you do it that way, it should definitely work, if it doesn't please share your code. You should also double-check that you are setting :country="country" in the region-select component, to inform it of the chosen country.

<country-select v-model="country" :countryName="true" :country="country" />

<region-select v-model="region" :countryName="true" :country="country" :region="region" />