I have a simple form that I'm using as a template in a Marionette ItemView, but for some reason, when I click submit, the form action doesn't work! I know the form is submitting since form submit event works and I can get around this issue by adding in such event handlers (commented out below). However, I'd much rather just use the form action feature as that's much easier. Anyone have this issue with Marionette / Backbone?
template file:
<form action="/valid_route" method="POST">
<div class="form-group">
<input class="form-control" type="text" name="text"/>
<button type="submit">Submit</button>
</div>
</form>
Marionette ItemView:
var View = Marionette.ItemView.extend({
template: template,
//
// ui: {
// form: 'form'
// },
//
// triggers: {
// 'submit @ui.form': 'submit'
// },
//
// onSubmit: function () {
// console.log("Submit!!!")
// },
});