Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 www 1
#### IMPORTANT: since v14 we have removed the jQuery dependency. See below for how to initialise and use the plugin with pure JavaScript. If you want to stick with the jQuery version, there is now a separate jQuery wrapped version.
2
---
3
 
4
# International Telephone Input [![Build Status](https://travis-ci.org/jackocnr/intl-tel-input.svg?branch=master)](https://travis-ci.org/jackocnr/intl-tel-input) <img src="https://img.shields.io/github/package-json/v/jackocnr/intl-tel-input.svg" /> <img src="https://img.shields.io/npm/dm/intl-tel-input.svg" />
5
A JavaScript plugin for entering and validating international telephone numbers. It adds a flag dropdown to any input, detects the user's country, displays a relevant placeholder and provides formatting/validation methods.
6
 
7
<img src="https://raw.github.com/jackocnr/intl-tel-input/master/screenshots/vanilla.png" width="424px" height="246px">
8
 
9
If you like it, please consider making a donation, which you can do from [the demo page](http://intl-tel-input.com).
10
 
11
## Table of Contents
12
 
13
- [Demo and Examples](#demo-and-examples)
14
- [Features](#features)
15
- [Browser Compatibility](#browser-compatibility)
16
- [Getting Started](#getting-started-using-a-bundler-eg-webpack)
17
- [Recommended Usage](#recommended-usage)
18
- [Options](#initialisation-options)
19
- [Public Methods](#public-methods)
20
- [Static Methods](#static-methods)
21
- [Events](#events)
22
- [Utilities Script](#utilities-script)
23
- [Troubleshooting](#troubleshooting)
24
- [Contributing](#contributing)
25
- [Attributions](#attributions)
26
 
27
 
28
## Demo and Examples
29
You can view a live demo and some examples of how to use the various options here: http://intl-tel-input.com, or try it for yourself using the included demo.html.
30
 
31
 
32
## Features
33
* Automatically select the user's current country using an IP lookup
34
* Automatically set the input placeholder to an example number for the selected country
35
* Navigate the country dropdown by typing a country's name, or using up/down keys
36
* Handle phone number extensions
37
* The user types their national number and the plugin gives you the full standardized international number
38
* Full validation, including specific error types
39
* Retina flag icons
40
* Lots of initialisation options for customisation, as well as public methods for interaction
41
 
42
 
43
## Browser Compatibility
44
| Chrome |  FF  | Safari |  IE  | Chrome Android | Mobile Safari | IE Mob |
45
| :----: | :--: | :----: | :--: | :------------: | :-----------: | :----: |
46
|    ✓   |   ✓  |    ✓   |  11  |       ✓        |       ✓       |    ✓   |
47
 
48
Note: In v12.0.0 we dropped support for IE9 and IE10, because they are no longer supported by any version of Windows - see https://www.xfive.co/blog/stop-supporting-ie10-ie9-ie8/
49
 
50
## Getting Started (Using a bundler e.g. Webpack)
51
1. Install with npm: `npm install intl-tel-input --save` or yarn: `yarn add intl-tel-input`
52
 
53
2. Import CSS: `import 'intl-tel-input/build/css/intlTelInput.css';`
54
 
55
3. Override the path to flags.png in your CSS
56
  ```css
57
  .iti__flag {background-image: url("path/to/flags.png");}
58
 
59
  @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
60
    .iti__flag {background-image: url("path/to/flags@2x.png");}
61
  }
62
  ```
63
 
64
4. Import JS and initialise plugin:
65
  ```js
66
  import intlTelInput from 'intl-tel-input';
67
 
68
  const input = document.querySelector("#phone");
69
  intlTelInput(input, {
70
      // any initialisation options go here
71
  });
72
  ```
73
 
74
5. **Recommended:** initialise the plugin with the `utilsScript` option to enable formatting/validation, and to allow you to extract full international numbers using `getNumber`.
75
 
76
## Getting Started (Not using a bundler)
77
1. Download the [latest release](https://github.com/jackocnr/intl-tel-input/releases/latest), or better yet install it with [npm](https://www.npmjs.com/package/intl-tel-input)
78
 
79
2. Include the stylesheet
80
  ```html
81
  <link rel="stylesheet" href="path/to/intlTelInput.css">
82
  ```
83
 
84
3. Override the path to flags.png in your CSS
85
  ```css
86
  .iti__flag {background-image: url("path/to/flags.png");}
87
 
88
  @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
89
    .iti__flag {background-image: url("path/to/flags@2x.png");}
90
  }
91
  ```
92
 
93
4. Add the plugin script and initialise it on your input element
94
  ```html
95
  <input type="tel" id="phone">
96
 
97
  <script src="path/to/intlTelInput.js"></script>
98
  <script>
99
    var input = document.querySelector("#phone");
100
    window.intlTelInput(input, {
101
      // any initialisation options go here
102
    });
103
  </script>
104
  ```
105
 
106
5. **Recommended:** initialise the plugin with the `utilsScript` option to enable formatting/validation, and to allow you to extract full international numbers using `getNumber`.
107
 
108
 
109
## Recommended Usage
110
We highly recommend you (lazy) load the included utils.js using the `utilsScript` option. Then the plugin is built to always deal with numbers in the full international format (e.g. "+17024181234") and convert them accordingly - even when `nationalMode` or `separateDialCode` is enabled. We recommend you get, store, and set numbers exclusively in this format for simplicity - then you don't have to deal with handling the country code separately, as full international numbers include the country code information.
111
 
112
You can always get the full international number (including country code) using `getNumber`, then you only have to store that one string in your database (you don't have to store the country separately), and then the next time you initialise the plugin with that number it will automatically set the country and format it according to the options you specify (e.g. if you enable `nationalMode` it will automatically remove the international dial code for you).
113
 
114
 
115
## Initialisation Options
116
When you initialise the plugin, the first argument is the input element, and the second is an object containing any initialisation options you want, which are detailed below. Note: any options that take country codes should be [ISO 3166-1 alpha-2](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) codes
117
 
118
**allowDropdown**
119
Type: `Boolean` Default: `true`
120
Whether or not to allow the dropdown. If disabled, there is no dropdown arrow, and the selected flag is not clickable. Also we display the selected flag on the right instead because it is just a marker of state.
121
 
122
**~~autoFormat~~ [REMOVED]**
123
Automatically format the number as the user types. Unfortunately this had to be removed for the reasons listed here: [#346 Disable and remove autoFormat feature](https://github.com/jackocnr/intl-tel-input/issues/346).
124
 
125
**autoHideDialCode**
126
Type: `Boolean` Default: `true`
127
If there is just a dial code in the input: remove it on blur or submit. This is to prevent just a dial code getting submitted with the form. Requires `nationalMode` to be set to `false`.
128
 
129
**autoPlaceholder**
130
Type: `String` Default: `"polite"`
131
Set the input's placeholder to an example number for the selected country, and update it if the country changes. You can specify the number type using the `placeholderNumberType` option. By default it is set to `"polite"`, which means it will only set the placeholder if the input doesn't already have one. You can also set it to `"aggressive"`, which will replace any existing placeholder, or `"off"`. Requires the `utilsScript` option.
132
 
133
**customContainer**
134
Type: `String` Default: `""`
135
Additional classes to add to the parent div.
136
 
137
**customPlaceholder**
138
Type: `Function` Default: `null`
139
Change the placeholder generated by autoPlaceholder. Must return a string.
140
 
141
```js
142
intlTelInput(input, {
143
  customPlaceholder: function(selectedCountryPlaceholder, selectedCountryData) {
144
    return "e.g. " + selectedCountryPlaceholder;
145
  },
146
});
147
```
148
 
149
**dropdownContainer**
150
Type: `Node` Default: `null`
151
Expects a node e.g. `document.body`. Instead of putting the country dropdown next to the input, append it to the specified node, and it will then be positioned absolutely next to the input using JavaScript. This is useful when the input is inside a container with `overflow: hidden`. Note that the absolute positioning can be broken by scrolling, so it will automatically close on the `window` scroll event.
152
 
153
**excludeCountries**
154
Type: `Array` Default: `undefined`
155
In the dropdown, display all countries except the ones you specify here.
156
 
157
**formatOnDisplay**
158
Type: `Boolean` Default: `true`
159
Format the input value (according to the `nationalMode` option) during initialisation, and on `setNumber`. Requires the `utilsScript` option.
160
 
161
**geoIpLookup**
162
Type: `Function` Default: `null`
163
When setting `initialCountry` to `"auto"`, you must use this option to specify a custom function that looks up the user's location, and then calls the success callback with the relevant country code. Also note that when instantiating the plugin, if the [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) object is defined, one of those is returned under the `promise` instance property, so you can do something like `iti.promise.then(callback)` to know when initialisation requests like this have completed.
164
 
165
Here is an example using the [ipinfo.io](https://ipinfo.io/) service:
166
```js
167
intlTelInput(input, {
168
  initialCountry: "auto",
169
  geoIpLookup: function(success, failure) {
170
    $.get("https://ipinfo.io", function() {}, "jsonp").always(function(resp) {
171
      var countryCode = (resp && resp.country) ? resp.country : "us";
172
      success(countryCode);
173
    });
174
  },
175
});
176
```
177
_Note that the callback must still be called in the event of an error, hence the use of `always` in this example._
178
_Tip: store the result in a cookie to avoid repeat lookups!_
179
 
180
**hiddenInput**
181
Type: `String` Default: `""`
182
Add a hidden input with the given name. Alternatively, if your input name contains square brackets (e.g. `name="phone_number[main]"`) then it will give the hidden input the same name, replacing the contents of the brackets with the given name (e.g. if you init the plugin with `hiddenInput: "full"`, then in this case the hidden input would have `name="phone_number[full]"`). On submit, it will automatically populate the hidden input with the full international number (using `getNumber`). This is a quick way for people using non-Ajax forms to get the full international number, even when `nationalMode` is enabled. Avoid this option when using Ajax forms and instead just call `getNumber` to get the full international number to send in the request. _Note: requires the input to be inside a form element, as this feature works by listening for the submit event on the closest form element. Also note that since this uses `getNumber` internally, firstly it requires the `utilsScript` option, and secondly it expects a valid number and so should only be used after validation._
183
 
184
**initialCountry**
185
Type: `String` Default: `""`
186
Set the initial country selection by specifying its country code. You can also set it to `"auto"`, which will lookup the user's country based on their IP address (requires the `geoIpLookup` option - [see example](http://intl-tel-input.com/node_modules/intl-tel-input/examples/gen/default-country-ip.html)). Note that the `"auto"` option will not update the country selection if the input already contains a number.
187
 
188
If you leave `initialCountry` blank, it will default to the first country in the list.
189
 
190
**localizedCountries**
191
Type: `Object` Default: `{}`
192
Allows to translate the countries by its given iso code e.g.:
193
 
194
```js
195
{ 'de': 'Deutschland' }
196
```
197
 
198
**nationalMode**
199
Type: `Boolean` Default: `true`
200
Allow users to enter national numbers (and not have to think about international dial codes). Formatting, validation and placeholders still work. Then you can use `getNumber` to extract a full international number - [see example](http://intl-tel-input.com/node_modules/intl-tel-input/examples/gen/national-mode.html). This option now defaults to `true`, and it is recommended that you leave it that way as it provides a better experience for the user.
201
 
202
**onlyCountries**
203
Type: `Array` Default: `undefined`
204
In the dropdown, display only the countries you specify - [see example](http://intl-tel-input.com/node_modules/intl-tel-input/examples/gen/only-countries-europe.html).
205
 
206
**placeholderNumberType**
207
Type: `String` Default: `"MOBILE"`
208
Specify [one of the keys](https://github.com/jackocnr/intl-tel-input/blob/master/src/js/utils.js#L119) from the global enum `intlTelInputUtils.numberType` e.g. `"FIXED_LINE"` to set the number type to use for the placeholder.
209
 
210
**preferredCountries**
211
Type: `Array` Default: `["us", "gb"]`
212
Specify the countries to appear at the top of the list.
213
 
214
**~~preventInvalidNumbers~~ [REMOVED]**
215
Prevent the user from entering invalid characters. Unfortunately this had to be removed for the reasons listed here: [#79 Limit Input Characters to Formatted String Length](https://github.com/jackocnr/intl-tel-input/issues/79#issuecomment-121799307).
216
 
217
**separateDialCode**
218
Type: `Boolean` Default: `false`
219
Display the country dial code next to the selected flag so it's not part of the typed number. Note that this will disable `nationalMode` because technically we are dealing with international numbers, but with the dial code separated.
220
 
221
<img src="https://raw.github.com/jackocnr/intl-tel-input/master/screenshots/separateDialCode.png" width="257px" height="46px">
222
 
223
**utilsScript**
224
Type: `String` Default: `""` Example: `"build/js/utils.js"`
225
Enable formatting/validation etc. by specifying the URL of the included utils.js script (or alternatively just point it to the file on [cdnjs.com](https://cdnjs.com/libraries/intl-tel-input)). The script is fetched only when the page has finished loading (on the window load event) to prevent blocking (the script is ~215KB). When instantiating the plugin, if the [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) object is defined, one of those is returned under the `promise` instance property, so you can do something like `iti.promise.then(callback)` to know when initialisation requests like this have finished. See [Utilities Script](#utilities-script) for more information.
226
 
227
 
228
## Public Methods
229
In these examples, `iti` refers to the plugin instance which gets returned when you initialise the plugin e.g. `var iti = intlTelInput(input)`
230
 
231
**destroy**
232
Remove the plugin from the input, and unbind any event listeners.
233
```js
234
iti.destroy();
235
```
236
 
237
**getExtension**
238
Get the extension from the current number. Requires the `utilsScript` option.
239
```js
240
var extension = iti.getExtension();
241
```
242
Returns a string e.g. if the input value was `"(702) 555-5555 ext. 1234"`, this would return `"1234"`
243
 
244
**getNumber**
245
Get the current number in the given format (defaults to [E.164 standard](http://en.wikipedia.org/wiki/E.164)). The different formats are available in the enum `intlTelInputUtils.numberFormat` - which you can see [here](https://github.com/jackocnr/intl-tel-input/blob/master/src/js/utils.js#L109). Requires the `utilsScript` option. _Note that even if `nationalMode` is enabled, this can still return a full international number. Also note that this method expects a valid number, and so should only be used after validation._
246
```js
247
var number = iti.getNumber();
248
// or
249
var number = iti.getNumber(intlTelInputUtils.numberFormat.E164);
250
```
251
Returns a string e.g. `"+17024181234"`
252
 
253
**getNumberType**
254
Get the type (fixed-line/mobile/toll-free etc) of the current number. Requires the `utilsScript` option.
255
```js
256
var numberType = iti.getNumberType();
257
```
258
Returns an integer, which you can match against the [various options](https://github.com/jackocnr/intl-tel-input/blob/master/src/js/utils.js#L119) in the global enum `intlTelInputUtils.numberType` e.g.
259
```js
260
if (numberType === intlTelInputUtils.numberType.MOBILE) {
261
    // is a mobile number
262
}
263
```
264
_Note that in the US there's no way to differentiate between fixed-line and mobile numbers, so instead it will return `FIXED_LINE_OR_MOBILE`._
265
 
266
**getSelectedCountryData**
267
Get the country data for the currently selected flag.
268
```js
269
var countryData = iti.getSelectedCountryData();
270
```
271
Returns something like this:
272
```js
273
{
274
  name: "Afghanistan (‫افغانستان‬‎)",
275
  iso2: "af",
276
  dialCode: "93"
277
}
278
```
279
 
280
**getValidationError**
281
Get more information about a validation error. Requires the `utilsScript` option.
282
```js
283
var error = iti.getValidationError();
284
```
285
Returns an integer, which you can match against the [various options](https://github.com/jackocnr/intl-tel-input/blob/master/src/js/utils.js#L153) in the global enum `intlTelInputUtils.validationError` e.g.
286
```js
287
if (error === intlTelInputUtils.validationError.TOO_SHORT) {
288
    // the number is too short
289
}
290
```
291
 
292
**isValidNumber**
293
Validate the current number - [see example](http://intl-tel-input.com/node_modules/intl-tel-input/examples/gen/is-valid-number.html). Expects an internationally formatted number (unless `nationalMode` is enabled). If validation fails, you can use `getValidationError` to get more information. Requires the `utilsScript` option. Also see `getNumberType` if you want to make sure the user enters a certain type of number e.g. a mobile number.
294
```js
295
var isValid = iti.isValidNumber();
296
```
297
Returns: `true`/`false`
298
 
299
**setCountry**
300
Change the country selection (e.g. when the user is entering their address).
301
```js
302
iti.setCountry("gb");
303
```
304
 
305
**setNumber**
306
Insert a number, and update the selected flag accordingly. _Note that if `formatOnDisplay` is enabled, this will attempt to format the number according to the `nationalMode` option._
307
```js
308
iti.setNumber("+447733123456");
309
```
310
 
311
**setPlaceholderNumberType**
312
Change the placeholderNumberType option.
313
```js
314
iti.setPlaceholderNumberType("FIXED_LINE");
315
```
316
 
317
 
318
## Static Methods
319
 
320
**getCountryData**
321
Get all of the plugin's country data - either to re-use elsewhere e.g. to populate a country dropdown - [see example](http://intl-tel-input.com/node_modules/intl-tel-input/examples/gen/country-sync.html), or to modify - [see example](http://intl-tel-input.com/node_modules/intl-tel-input/examples/gen/modify-country-data.html). Note that any modifications must be done before initialising the plugin.
322
```js
323
var countryData = window.intlTelInputGlobals.getCountryData();
324
```
325
Returns an array of country objects:
326
```js
327
[{
328
  name: "Afghanistan (‫افغانستان‬‎)",
329
  iso2: "af",
330
  dialCode: "93"
331
}, ...]
332
```
333
 
334
**getInstance**
335
After initialising the plugin, you can always access the instance again using this method, by just passing in the relevant input element.
336
```js
337
var input = document.querySelector('#phone');
338
var iti = window.intlTelInputGlobals.getInstance(input);
339
iti.isValidNumber(); // etc
340
```
341
 
342
**loadUtils**
343
An alternative to the `utilsScript` option, this method lets you manually load the utils.js script on demand, to enable formatting/validation etc. See [Utilities Script](#utilities-script) for more information. This method should only be called once per page. If the [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) object is defined, one of those is returned so you can use `loadUtils().then(callback)` to know when it's finished.
344
```js
345
window.intlTelInputGlobals.loadUtils("build/js/utils.js");
346
```
347
 
348
**~~setCountryData~~ [REMOVED]**
349
Set the plugin's country data. This method was removed because it makes much more sense to just use `getCountryData` and then modify that ([see example](http://intl-tel-input.com/node_modules/intl-tel-input/examples/gen/modify-country-data.html)) instead of having to generate the whole thing yourself - the country data has become increasingly complicated and for each country we now have five properties: the name, [iso2 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), international dial code, priority (in case two countries have the same international dial code), and finally a list of area codes used in that country - see [data.js](https://github.com/jackocnr/intl-tel-input/blob/master/src/js/data.js#L36) for more info.
350
 
351
 
352
## Events
353
You can listen for the following events on the input.
354
 
355
**countrychange**
356
This is triggered when the user selects a country from the dropdown.
357
```js
358
input.addEventListener("countrychange", function() {
359
  // do something with iti.getSelectedCountryData()
360
});
361
```
362
See an example here: [Country sync](http://intl-tel-input.com/node_modules/intl-tel-input/examples/gen/country-sync.html)
363
 
364
**open:countrydropdown**
365
This is triggered when the user opens the dropdown.
366
 
367
**close:countrydropdown**
368
This is triggered when the user closes the dropdown.
369
 
370
 
371
## Utilities Script
372
The utilities script ([build/js/utils.js](build/js/utils.js)) is a custom build of Google's [libphonenumber](https://github.com/googlei18n/libphonenumber) which enables the following features:
373
 
374
* Formatting upon initialisation, as well as with `getNumber` and `setNumber`
375
* Validation with `isValidNumber`, `getNumberType` and `getValidationError` methods
376
* Placeholder set to an example number for the selected country - even specify the type of number (e.g. mobile) using the `placeholderNumberType` option
377
* Extract the standardised (E.164) international number with `getNumber` even when using the `nationalMode` option
378
 
379
International number formatting/validation is hard (it varies by country/district, and we currently support ~230 countries). The only comprehensive solution I have found is libphonenumber, from which I have precompiled the relevant parts into a single JavaScript file and included in the build directory. Unfortunately even after minification it is still ~215KB, but if you use the `utilsScript` option then it will only fetch the script when the page has finished loading (to prevent blocking). If size is not a concern, then you can manually include the script yourself however you like, and as long as it has loaded before you initialise the plugin then it should work fine.
380
 
381
To recompile the utils script yourself (e.g. to update the version of libphonenumber it is built from), see the [contributing guide](https://github.com/jackocnr/intl-tel-input/blob/master/.github/CONTRIBUTING.md#updating-to-a-new-version-of-libphonenumber).
382
 
383
 
384
## Troubleshooting
385
 
386
**Full width input**
387
If you want your input to be full-width, you need to set the container to be the same i.e.
388
 
389
```css
390
.iti { width: 100%; }
391
```
392
 
393
**dropdownContainer: dropdown not closing on scroll**
394
If you have a scrolling container other than `window` which is causing problems by not closing the dropdown on scroll, simply listen for the scroll event on that element, and trigger a scroll event on `window`, which in turn will close the dropdown e.g.
395
 
396
```js
397
scrollingElement.addEventListener("scroll", function() {
398
  var e = document.createEvent('Event');
399
  e.initEvent("scroll", true, true);
400
  window.dispatchEvent(e);
401
});
402
```
403
 
404
**Input margin**
405
For the sake of alignment, the default CSS forces the input's vertical margin to `0px`. If you want vertical margin, you should add it to the container (with class `iti`).
406
 
407
**Displaying error messages**
408
If your error handling code inserts an error message before the `<input>` it will break the layout. Instead you must insert it before the container (with class `iti`).
409
 
410
**Dropdown position**
411
The dropdown should automatically appear above/below the input depending on the available space. For this to work properly, you must only initialise the plugin after the `<input>` has been added to the DOM.
412
 
413
**Placeholders**
414
In order to get the automatic country-specific placeholders, simply omit the placeholder attribute on the `<input>`.
415
 
416
**Bootstrap input groups**
417
A couple of CSS fixes are required to get the plugin to play nice with Bootstrap [input groups](https://getbootstrap.com/docs/3.3/components/#input-groups). You can see a Codepen [here](http://codepen.io/jackocnr/pen/EyPXed).
418
_Note: there is currently [a bug](https://bugs.webkit.org/show_bug.cgi?id=141822) in Mobile Safari which causes a crash when you click the dropdown arrow (a CSS triangle) inside an input group. The simplest workaround is to remove the CSS triangle with this line:_
419
 
420
```css
421
.iti__arrow { border: none; }
422
```
423
 
424
 
425
## Contributing
426
See the [contributing guide](https://github.com/jackocnr/intl-tel-input/blob/master/.github/CONTRIBUTING.md) for instructions on setting up the project and making changes, and also for how to update to a new version of libphonenumber, or how to update the flag images.
427
 
428
 
429
## Attributions
430
* Flag images from [region-flags](https://github.com/behdad/region-flags)
431
* Original country data from mledoze's [World countries in JSON, CSV and XML](https://github.com/mledoze/countries)
432
* Formatting/validation/example number code from [libphonenumber](https://github.com/googlei18n/libphonenumber)
433
* Feature contributions are listed in the wiki: [Contributions](https://github.com/jackocnr/intl-tel-input/wiki/Contributions)
434
 
435
 
436
## Links
437
* List of [sites using intl-tel-input](https://github.com/jackocnr/intl-tel-input/wiki/Sites-using-intl-tel-input)
438
* List of [integrations with intl-tel-input](https://github.com/jackocnr/intl-tel-input/wiki/Integrations)
439
* Android native port: [IntlPhoneInput](https://github.com/Rimoto/IntlPhoneInput)
440
* Typescript type definitions are available in the [DefinitelyTyped repo](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/intl-tel-input/index.d.ts) (more info [here](https://github.com/jackocnr/intl-tel-input/issues/433#issuecomment-228517623))
441
 
442
<img width="200" src="https://www.browserstack.com/images/layout/browserstack-logo-600x315.png" /><br />
443
Testing powered by [BrowserStack Open-Source Program](https://www.browserstack.com/open-source)