Skip to content

[🐞] conditionally adding window/document events in browser fails #8128

@wmertens

Description

@wmertens

Which component is affected?

Qwik Runtime

Describe the bug

Trying to register a window event via window:onMouseMove$, it doesn't add the attribute in CSR that qwikloader needs to find the element.

Reproduction

https://qwik.dev/examples/introduction/hello-world/#f=7VbLCsIwEPyVFaRVkCKCl0D0JHgpeNQPCL2ZQiW0hPy7k6RmEwQvngSh0IZJ95HuTCcbmv0utZMPzYZwpR%2Fw1yMUz%2BOhuw5qIjnwygvlOm0YL3oo4C1j0wes18MZ0u3JLwl5lRHUamw9GRSSqqCQoAGHoc6SlGmgWthwDZhP8I7dgDmf6cUCGCIov%2Beu0PeQpNVGLaWN3c0Rqiorys1fIHootg42HlDxoqRFvnaHIu6xhj72tcANfqR20YxgbJNBY%2FM3CrLcr6MJa%2B7RJdsXH%2F5k%2FlUyPwE

Steps to reproduce

set the toggle to false and click the button

System Info

web

Additional Information

This happens in v1 and v2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions