Skip to content

Commit

Permalink
Release v9.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
jackocnr committed Dec 3, 2016
1 parent 6bc43f7 commit c1710c9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions build/js/intlTelInput.js
@@ -1,5 +1,5 @@
/*
* International Telephone Input v9.2.5
* International Telephone Input v9.2.6
* https://github.com/jackocnr/intl-tel-input.git
* Licensed under the MIT license
*/
Expand Down Expand Up @@ -281,9 +281,9 @@
// 3. picking the first preferred country
// 4. picking the first country
_setInitialState: function() {
var val = this.telInput.val(), dialCode = this._getDialCode(val);
var val = this.telInput.val();
// if we already have a dial code, and it's not a regionlessNanp we can go ahead and set the flag, else fall back to default
if (dialCode && !this._isRegionlessNanp(val)) {
if (this._getDialCode(val) && !this._isRegionlessNanp(val)) {
this._updateFlagFromNumber(val, true);
} else if (this.options.initialCountry !== "auto") {
// see if we should select a flag
Expand Down Expand Up @@ -1067,7 +1067,7 @@
}
};
// version
$.fn[pluginName].version = "9.2.5";
$.fn[pluginName].version = "9.2.6";
// default options
$.fn[pluginName].defaults = defaults;
// Array of country objects for the flag dropdown.
Expand Down

0 comments on commit c1710c9

Please sign in to comment.