I have events for 'submit' in the form. In IE8, if I submit the form without entering any information, just click the "Submit" button, it will submit the form and will never catch or process a specific event in Backbone. However, if I just click on the input field, then click the "send event" button.
The baseline event is configured as follows:
events: {
'submit #form': 'submitForm',
},
submitForm: function(e){
e.preventDefault();
}
Any ideas why this would be?
Update: here is an example form:
<div id="form">
<form action="/action" method="post">
<input type="text" name="name" />
<button type="submit" value="Submit"></button>
</form>
</div>
This is literally only in IE8 and ONLY unless you first click on an item on the form before submitting. The event fires in FF, Chrome, IE9 + without any problems. But only in IE8, if you just click the Submit button without doing anything else, the event does not fire.