Question

I have in my project(written by others) handlebars template the following code snippet

{{view view.textfield propagateEvents="true"}}

I want to know what propagateEvents="true" does ?...Thanks

Was it helpful?

Solution

Ember.Button (which I believe is being deprecated) has a propagateEvents property, but not Ember.TextField.

From the handlebars action helper documentation:

Event Propagation

Events triggered through the action helper will automatically have .preventDefault() called on them. You do not need to do so in your event handlers. To stop propagation of the event, simply return false from your handler.

If you need the default handler to trigger you should either register your own event handler, or use event methods on your view class.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top