react-country-province
Advanced tools
Comparing version 0.1.1 to 0.2.0
@@ -25,2 +25,3 @@ | ||
opts = { | ||
countryDefault: 'US', | ||
country:{ | ||
@@ -27,0 +28,0 @@ name:'countrySelect', |
13
index.js
@@ -42,4 +42,11 @@ | ||
var country; | ||
if( this.opts.country ){ | ||
country = this.opts.country.value | ||
} else if( this.opts.countryDefault ){ | ||
country = this.opts.countryDefault | ||
} | ||
if( this.opts.province ){ | ||
this.renderProvinces(this.opts.country.value) | ||
this.renderProvinces(country) | ||
} | ||
@@ -84,4 +91,8 @@ } | ||
placeholder: this.opts.province.label, | ||
multi: false, | ||
options: [] | ||
} | ||
if( this.opts.province.multi ){ | ||
rOpts.multi = true | ||
} | ||
if( this.provinceOptions[country] ){ | ||
@@ -88,0 +99,0 @@ rOpts.options = this.provinceOptions[country] |
{ | ||
"name": "react-country-province", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"description": "Country and Province/State typeahead selector using react.", | ||
@@ -39,3 +39,7 @@ "main": "index.js", | ||
"watchify": "^2.4.0" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git@github.com:wunderlink/react-country-province.git" | ||
} | ||
} |
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
160017
6178
3