]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Fix missing checkbox requiredCheck 8576/head
authorBrian Tan <briantan888@users.noreply.github.com>
Mon, 11 Apr 2016 17:48:37 +0000 (13:48 -0400)
committerBrian Tan <briantan888@users.noreply.github.com>
Mon, 11 Apr 2016 17:48:37 +0000 (13:48 -0400)
requiredCheck for checkbox was removed from 6.2.1. Reinstating.

js/foundation.abide.js

index c7b874933da61568818e208a7efd8026e1ce6c9b..b907c9eb59b0c669857970440f0015cab1909d98 100644 (file)
@@ -83,6 +83,10 @@ class Abide {
     var isGood = true;
 
     switch ($el[0].type) {
+      case 'checkbox':
+        isGood = $el[0].checked;
+        break;
+
       case 'select':
       case 'select-one':
       case 'select-multiple':