alaska-field-number
Advanced tools
Comparing version 0.12.3 to 0.12.12
{ | ||
"name": "alaska-field-number", | ||
"version": "0.12.3", | ||
"version": "0.12.12", | ||
"description": "Alaska number field", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -127,20 +127,18 @@ // @flow | ||
if (field.horizontal === false) { | ||
let labelElement = label ? <label className="control-label">{label}</label> : null; | ||
if (field.horizontal) { | ||
return ( | ||
<div className={className}> | ||
{labelElement} | ||
{inputElement} | ||
{helpElement} | ||
<label className="col-sm-2 control-label">{label}</label> | ||
<div className="col-sm-10"> | ||
{inputElement} | ||
{helpElement} | ||
</div> | ||
</div> | ||
); | ||
} | ||
return ( | ||
<div className={className}> | ||
<label className="col-sm-2 control-label">{label}</label> | ||
<div className="col-sm-10"> | ||
{inputElement} | ||
{helpElement} | ||
</div> | ||
{label ? <label className="control-label">{label}</label> : null} | ||
{inputElement} | ||
{helpElement} | ||
</div> | ||
@@ -147,0 +145,0 @@ ); |
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
12993
408