]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
skip keydown validation on tab key 5984/head
authorMagicSux <scarabeuz@gmail.com>
Wed, 29 Oct 2014 00:52:58 +0000 (01:52 +0100)
committerMagicSux <scarabeuz@gmail.com>
Wed, 29 Oct 2014 00:52:58 +0000 (01:52 +0100)
Since tab key triggers the blur event, skip it.
It's not a keydown event that needs to be triggered.

js/foundation/foundation.abide.js

index 59f0d069e5ed77e64e08c6a86883b811f977f1e8..e1203c4484870f41a1bd1efc09625f0542e41301 100644 (file)
@@ -82,7 +82,7 @@
             self.validate([this], e);
           })
           .on('keydown.fndtn.abide', function (e) {
-            if (settings.live_validate === true) {
+            if (settings.live_validate === true && e.which != 9) {
               clearTimeout(self.timer);
               self.timer = setTimeout(function () {
                 self.validate([this], e);