Reputation: 5174
I know Marionette calls preventDefault
and stopPropagation
by default, however, this prevents a menu of mine from closing.
Is there a way to re-enable it?
Upvotes: 1
Views: 168
Reputation: 5174
got lucky with a google query.
Backbone.Marionette.CompositeView.extend({
triggers: {
"click .do-something": {
event: "something:do:it",
preventDefault: true, // this param is optional and will default to true
stopPropagation: false
}
}
});
Upvotes: 1