View more context

 

lerni

if its from a different modulde Before & After may help

alt

not following sorry. Can I declare requirements in yml?

lerni

well I thought about custom modules - I'm off for skiing 🙂

kinglozzer
  1. [].forEach.call(document.querySelectorAll('a'), (el) => {
  2. console.log(el);
  3. el.addEventListener('click', (e) => {
  4. alert('AYYYY');
  5. e.preventDefault();
  6. });
  7. });

is logging a bunch of anchors as expected, but the click event handler never fires