country-regions / country-region-selector

Dynamic country and region dropdowns for your forms.
http://country-regions.github.io/country-region-selector/
MIT License
252 stars 115 forks source link

Blacklist Region - Puerto Rico #65

Open brentlblair opened 6 years ago

brentlblair commented 6 years ago

Puerto Rico is listed as a country and a region under the US. I'm not sure if this should be changed in the data file, or if some users might have a reason to use both variations. We are using this for export purposes, so we only want the country of Puerto Rico listed, and not the state under the US. Would it be possible to add the ability to blacklist a specific region in a country? I have already removed it from my data file, but I am looking at a better solution for when there are updates released in the future.

ellenhutchings commented 6 years ago

The data file is based off of the ISO3166 standard, and that does have these two definitions for Puerto Rico.

Any fix would probably need to be a variation of blacklisting regions, and not "fixing" the data ☹️

brentlblair commented 5 years ago

That is what I was trying to ask for. I wanted the ability to blacklist regions in a country, so that I don't have to touch the data file.