Open
Description
Which component is affected?
Qwik City (routing)
Describe the bug
This code:
addEventListener("popstate", win[initPopstate]);
addEventListener("scroll", win[initScroll], {
passive: true
});
calls function from Qwik Loader:
const addEventListener = (el, eventName, handler, capture = false) => {
el.addEventListener(eventName, handler, { capture, passive: false });
};
And this is wrong. It should call window.addEventListener or pass element as a first arg
Reproduction
Steps to reproduce
No response
System Info
-
Additional Information
No response