phonefield.js console error fixed

This commit is contained in:
Muammer Top 2020-10-20 16:40:52 +03:00
parent 18e35ac6da
commit ea5d738ed1

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, {