I'm trying to use one of Ember's checkbox input helpers which is placed inside a div with an action assigned to it. The problem I'm having is that now clicking the checkbox doesn't work correctly and instead the container's action helper is called.
App.MyCheckboxComponent = Ember.Component.extend({
isSelected: false,
actions: {
containerClicked: function(e) {
alert('container clicked');
}
}
});
I created a fiddle to show this in action. Does anyone know how I can prevent this?
I'd like for clicking the checkbox to update its bound value.
While clicking outside the checkbox container should trigger the action associated with the container.
With general purpose actions you can set bubbles=false
but this doesn't seem to work with input helpers. Thanks!