react-jsonschema-form
Advanced tools
Comparing version 0.35.0 to 0.35.1
@@ -15,8 +15,17 @@ "use strict"; | ||
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } | ||
function BaseInput(props) { | ||
// Note: since React 15.2.0 we can't forward unknown element attributes, so we | ||
// exclude the "options" and "schema" ones here. | ||
var value = props.value; | ||
var readonly = props.readonly; | ||
var _onChange = props.onChange; | ||
var options = props.options; | ||
var // eslint-disable-line | ||
schema = props.schema; | ||
return _react2.default.createElement("input", _extends({}, props, { | ||
var inputProps = _objectWithoutProperties(props, ["value", "readonly", "onChange", "options", "schema"]); | ||
return _react2.default.createElement("input", _extends({}, inputProps, { | ||
className: "form-control", | ||
@@ -23,0 +32,0 @@ readOnly: readonly, |
{ | ||
"name": "react-jsonschema-form", | ||
"version": "0.35.0", | ||
"version": "0.35.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
755488
3192