Skip to content

Event target stack incorrect when wa-page is imported #5178

@tpluscode

Description

@tpluscode

Which package(s) are affected?

SSR (@lit-labs/ssr)

Description

I render a page where my elements are sharing some data using @lit-labs/context. When I put them in Web Awesome wa-page, I found that the context stepped propagating.

I traced it to issue with event targeting where the event target stack is incorrect, thus causing the event to never reach the right parent

Reproduction

https://gist.github.com/tpluscode/3e5bdc0768489f8376379b055ddcfe6f

Workaround

I found none

Is this a regression?

No or unsure. This never worked, or I haven't tried before.

Affected versions

lit@3.3.1 @lit-labs/ssr@3.3.1 @lit-labs/context@0.5.1

Browser/OS/Node environment

  • Brave 1.84.139 Chromium: 142.0.7444.163
  • node 20.19.4
  • npm 10.8.2
  • macOS 15.3.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions