Comparing version 0.3.31 to 0.3.32
@@ -254,11 +254,13 @@ // # Choices component | ||
var visibleChoices = []; | ||
var inSection; | ||
var isInOpenSection; | ||
var isInSection = false; | ||
choices.forEach(function (choice) { | ||
if (choice.sectionKey) { | ||
inSection = choice.sectionKey === openSection; | ||
isInSection = true; | ||
isInOpenSection = choice.sectionKey === openSection; | ||
} | ||
if (choice.value && choice.value.match(magicChoiceRe)) { | ||
visibleChoices.push(choice); | ||
} else if (alwaysExanded || choice.sectionKey || inSection) { | ||
} else if (alwaysExanded || choice.sectionKey || isInOpenSection || !isInSection) { | ||
visibleChoices.push(choice); | ||
@@ -265,0 +267,0 @@ } |
{ | ||
"name": "formatic", | ||
"version": "0.3.31", | ||
"version": "0.3.32", | ||
"description": "Automatic, pluggable form generation", | ||
@@ -5,0 +5,0 @@ "main": "./build/lib/formatic", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
206962
5853