Closed
Description
Version
2.6.10
Reproduction link
https://jsfiddle.net/abn13gqy/
Steps to reproduce
- Add a @click handler to a component
- Pass a function with parameter called with a name that begin with "function" a Capitalized word
- Run
What is expected?
The function should run only on click
What is actually happening?
The function is run as soon as the component is loaded
A TypeError is thrown: _vm.function in not a function or handler is undefined
I believe that the vue compiler parse "functionName(param)" as "function Name(param)" thus as the parsed string is evaluated, the function runs immediately when loaded
Metadata
Metadata
Assignees
Labels
No labels