Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4830

Conflict with action and events in component

$
0
0

@Charles_Bourasseau wrote:

I think there is a an issue between template actions and event in components.

As far as I understand all action clicks will be first executed and bubbled.
Then events in components will be.
There are like two parallel stacks executed one after the other.

If you have something like this in the template of a component:

Hello Click me

and this in the corresponding javascript file:

click: function() {
alert('second message');
}

You are not sure that the second message will be displayed. If event.stopPropagation() is called in the stack of action, the it will not.

Here is a twiddle: https://ember-twiddle.com/c9a014a0c19851596d5e1184c9967cbc

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4830

Trending Articles