Skip to content

build project with 'vue-cli 2', if some function named 'functionClickHandle' and bind with '@click="functionClickHandle()"', It will run automatically. #9920

Closed
@lk19940215

Description

@lk19940215

Version

2.5.9

Reproduction link

https://github.com/lk19940215/vue-issue

Steps to reproduce

  1. clone my github project

npm i
npm run dev

  1. {{i}}
    // looks like '()‘ is required.

something happend

window.alert(1i am big boss)
window.alert(2i am big boss)

because it run's automatically.

but window.alert('item click changed') did not.

What is expected?

i just want to report.

What is actually happening?

run automatically


vue version >= 2.5.2

One day I maintain an old project, something just happend, my web page always redirected to anothoer page. until i change the function named 'functionClickHandle' with 'itemClick'. because 'functionClickHandle' has some judgments inside, and run automatically.

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