Shopify/batman — pull request #267 by omo (2011-12-04 16:23:06+00:00)
Title: Supressed extra submit event triggered by a focus move in an event handler.

Hi Batmen,

Could you take a look at this small fix?

I found this with the code..
- which invokes node.focus() inside the "click" event handler (for helping a form input):
- A "keydown" event triggers "click" event,
- whose event handler moves focus() to some element,
- which has @data-event-submit, and Batman invokes the associated submit handler.

This looks an unintended behavior. I think it's OK just to drop the event for this case.