Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
camelCased custom event name is not working #4044
I modified the custom event example from the documentation as an example (http://vuejs.org/guide/components.html#Using-v-on-with-Custom-Events),
Steps to reproduce
In the jsfiddle example, incrementOne is the custom event name for the button-counter component, but it won't work if clicking the button.
What is Expected?
camelCased custom event name should be called in the parent component if a child component is calling it using $emit.
What is actually happening?
If you use camelCased name for a custom event, it will not respond to any call. You have to change it to lowercased event name in order to respond to any call.
referenced this issue
Nov 2, 2016
@geoidesic if it never worked in the first place how could it be breaking people's projects?
As explained, this only applies to in-dom templates, and no, it won't work in Angular either if you use in-dom templates. This cannot be fixed so there nothing to fix. It does work if you use string templates.