Skip to content

Vue 3 does not handle events with specific names (capture, once, passive) from custom element #8334

Description

@kirillshatalkin

Vue version

3

Link to minimal reproduction

https://codesandbox.io/p/sandbox/autumn-dust-4f3rb4

Steps to reproduce

  • Create a SFC component
  • Define in that component event with name "capture"
  • Define custom element in window
  • Use this custom element in Vue 3 App
  • Subscribe to event and trigger some method on it

What is expected?

Method is triggered on event "capture" from custom element

What is actually happening?

Method is NOT triggered

System Info

No response

Any additional comments?

That custom element works fine with Vue 2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions