kidcapital
kidcapital

Reputation: 5174

How to disable the automatic preventDefault and stopPropagate in Backbone.Marionette?

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

Answers (1)

kidcapital
kidcapital

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

Related Questions