I have this code which executes when text is pasted into an input field. It works perfectly when I have the alert
included (ie makeCode()
is excecuted), but when I comment out the alert
then makeCode()
is no longer executed. Thoughts?
const handleInputPaste = ev => {
//alert("hi");
makeCode();
}
inputs.forEach(input => {
input.addEventListener('paste', handleInputPaste)
})