Skip to content

[🐞] Embedding qwik: Click handlers not firing for single-file embeddable widget #8186

@makinghappen

Description

@makinghappen

Which component is affected?

Qwik Runtime

Describe the bug

I’m using Qwik as a client-only, single-file embeddable widget (no SSR, no Qwik City). The idea is:

  • Build a single IIFE bundle (e.g. qwik-widget.single.js)
  • Expose window.QwikWidget.mount(target, props)
  • Mount into arbitrary <div>s on any HTML page

the issue is that click handlers are not firing.

What would be the proper way of building a embeddable qwik widget/element?

Reproduction

https://github.com/makinghappen/qwik-embed-test

Steps to reproduce

No response

System Info

Qwik: `@builder.io/[email protected]`

Bundler: Vite `7.1.11`

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions