Skip to content

[vue-compat] @click not working on components #3998

@liamdebeasi

Description

@liamdebeasi

Version

3.1.2

Reproduction link

https://github.com/liamdebeasi/vue3-repro

Steps to reproduce

  1. Clone repo and run npm install.
  2. Run npm run serve to start up a dev server.
  3. Click the "Click me!" text and observe that nothing is logged to your Dev Tools Console.
  4. Quit the dev server and comment out the config.resolve.alias line in vue.config.js to disable the compat mode.
  5. Run the dev server again.
  6. Click the "Click me!" text and observe that this time the "Component was clicked!" text is logged to your Dev Tools Console.

What is expected?

I would expect that the click handler is fired regardless of whether or not I am using the compat build.

What is actually happening?

The click handler is only firing when not using the compat build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions