You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Version
2.6.10
Reproduction link
https://jsfiddle.net/abn13gqy/
Steps to reproduce
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
The text was updated successfully, but these errors were encountered: