Merge pull request #730 from openclassify/muammertop

phonefield.js console error fixed
This commit is contained in:
spektra2147 2020-10-20 17:01:23 +03:00 committed by GitHub
commit 5eceef958f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,6 @@
function phoneMask(fields) {
var country = document.getElementById('country').innerText;
var country = document.getElementById('country')
? document.getElementById('country').innerText : null;
var inputQueries = document.querySelectorAll(fields);
inputQueries.forEach(function (inputQuery, key) {
var iti = intlTelInput(inputQuery, {