Skip to content

Commit

Permalink
build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
skocheri committed Oct 16, 2020
1 parent a44f22a commit 9a20eaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/idLibrary.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand All @@ -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));
}
Expand Down

0 comments on commit 9a20eaf

Please sign in to comment.