mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-24 22:11:01 -06:00
phonefield.js console error fixed
This commit is contained in:
parent
18e35ac6da
commit
ea5d738ed1
@ -1,5 +1,6 @@
|
|||||||
function phoneMask(fields) {
|
function phoneMask(fields) {
|
||||||
var country = document.getElementById('country').innerText;
|
var country = document.getElementById('country')
|
||||||
|
? document.getElementById('country').innerText : null;
|
||||||
var inputQueries = document.querySelectorAll(fields);
|
var inputQueries = document.querySelectorAll(fields);
|
||||||
inputQueries.forEach(function (inputQuery, key) {
|
inputQueries.forEach(function (inputQuery, key) {
|
||||||
var iti = intlTelInput(inputQuery, {
|
var iti = intlTelInput(inputQuery, {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user