I have a card with a back which essentially contains this code:
<button class="tappable" id="do-thing" onclick="alert('ahh')">
Do thing
</button>
<script>
document.getElementById('do-thing')
.addEventListener('click', () => {
alert('noo')
})
</script>
I’m fairly confident the event listener used to accept clicks and run the handler. Now, it appears only onclick
attributes are respected, so the ahh
alert shows up, but the noo
alert never does.