jyoungblood / smoke.js

framework-agnostic styled alert system for javascript
http://smoke.js.org/
930 stars 107 forks source link

Dialog buttons are triggered by keyup from submitting form #50

Open mspreij opened 10 years ago

mspreij commented 10 years ago

When I submit a form using return key, server processes, sends back result, browser parses, throws up smoke confirm window - the keyup from the return key seems to 'Ok' that dialog.. as much as I like the speed of these boxes and the internal network, is there a fix or workaround for this?

agamemnus commented 10 years ago

Waiting for the keyup (instead of a keydown?) before the form is submitted would be an easy fix...