Fix event listeners assignation

parent cf7f65b4
Pipeline #1420 passed with stage
in 33 seconds
......@@ -154,8 +154,8 @@ window.addEventListener('load', function() {
// Add event listeners to inputs
let inputs = document.querySelectorAll('.colorpicker input[type="radio"], #step3 input[type="radio"], #step4 input[type="radio"]');
for (let i = 0; i < bgColorElems.length; ++i) {
bgColorElems[i].onchange = draw;
for (let i = 0; i < inputs.length; ++i) {
inputs[i].onchange = draw;
}
document.getElementById('step2value').oninput = draw;
document.getElementById('signature').oninput = draw;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment