react-jsonschema-form
Advanced tools
Comparing version 0.36.0 to 0.36.1
@@ -17,7 +17,15 @@ "use strict"; | ||
return _react2.default.createElement( | ||
"div", | ||
{ id: id, className: "field-description" }, | ||
description | ||
); | ||
if (typeof description === "string") { | ||
return _react2.default.createElement( | ||
"p", | ||
{ id: id, className: "field-description" }, | ||
description | ||
); | ||
} else { | ||
return _react2.default.createElement( | ||
"div", | ||
{ id: id, className: "field-description" }, | ||
description | ||
); | ||
} | ||
} | ||
@@ -24,0 +32,0 @@ |
@@ -139,3 +139,3 @@ "use strict"; | ||
displayLabel && label ? getLabel(label, required, id) : null, | ||
description ? _react2.default.createElement(_DescriptionField2.default, { id: id + "__description", description: description }) : null, | ||
displayLabel && description ? _react2.default.createElement(_DescriptionField2.default, { id: id + "__description", description: description }) : null, | ||
children, | ||
@@ -142,0 +142,0 @@ isError ? _react2.default.createElement(ErrorList, { errors: errors }) : _react2.default.createElement("div", null), |
{ | ||
"name": "react-jsonschema-form", | ||
"version": "0.36.0", | ||
"version": "0.36.1", | ||
"description": "A simple React component capable of building HTML forms out of a JSON schema.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
760482
3329