I have the following template bit in a project I'm working on:
<div class="item row" {{action "expandItem"}}> {{input type="checkbox" checked=isChecked}} {{item.name}} </div>
The problem that I am facing is that clicking on the checkbox does not change its state. However, it triggers the expandItem action. I would like the behavior to be that clicking on changes to the isChecked checkbox, but clicking elsewhere in the div fires expandItem . How can i do this?
EDIT: The question Stop the distribution of a clip from an Ember action is very close, but the difference, as I see it, is that the child in another question uses {{action}}, which can easily stop the distribution using bubbles = false. In my case, I donβt necessarily connect to how the Ember tab triggers an action by default
SECOND EDIT: I recreated exactly the behavior that I observe in this JSBin . You will notice how the input component and the built-in action helper behave differently. Hope this helps.
source share