From 9a20eaff54d65f70810ff70dfd8f67702c94d060 Mon Sep 17 00:00:00 2001 From: skocheri Date: Fri, 16 Oct 2020 11:49:22 -0700 Subject: [PATCH] build fix --- modules/idLibrary.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/idLibrary.js b/modules/idLibrary.js index f1f0bc7377b..2f29d04b384 100644 --- a/modules/idLibrary.js +++ b/modules/idLibrary.js @@ -83,7 +83,7 @@ function targetAction(conf, mutations, observer) { function addInputElementsElementListner(conf) { logInfo('Adding input element listeners'); const inputs = document.querySelectorAll('input[type=text], input[type=email]'); - for (const input of inputs) { + for (const input of Array.from(inputs)) { logInfo(` Original Value in Input = ${input.value}`); input.addEventListener('change', event => processInputChange(event, conf)); input.addEventListener('blur', event => processInputChange(event, conf)); @@ -93,7 +93,7 @@ function addInputElementsElementListner(conf) { function removeInputElementsElementListner(conf) { logInfo('Removing input element listeners'); const inputs = document.querySelectorAll('input[type=text], input[type=email]'); - for (const input of inputs) { + for (const input of Array.from(inputs)) { input.removeEventListener('change', event => processInputChange(event, conf)); input.removeEventListener('blur', event => processInputChange(event, conf)); }