-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build project with 'vue-cli 2', if some function named 'functionClickHandle' and bind with '@click="functionClickHandle()"', It will run automatically. #9920
Labels
Comments
A better repro for this compiler bug: https://template-explorer.vuejs.org/#%3Cbutton%20%40click%3D%22functionx()%22%3EGo%3C%2Fbutton%3E |
You can use a method name without |
|
kiku-jw
pushed a commit
to kiku-jw/vue
that referenced
this issue
Jun 18, 2019
Lostlover
pushed a commit
to Lostlover/vue
that referenced
this issue
Dec 10, 2019
This was referenced Dec 21, 2019
This was referenced Jan 20, 2020
This was referenced Feb 25, 2020
This was referenced Mar 4, 2020
This was referenced Mar 28, 2020
This was referenced Apr 15, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
2.5.9
Reproduction link
https://github.com/lk19940215/vue-issue
Steps to reproduce
clone my github project
npm i
npm run dev
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.
The text was updated successfully, but these errors were encountered: