@goldenpine/react-form-builder2 0.20.3-build.14 → 0.20.3-build.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.js +1 -1
- package/lib/form-elements/index.js +4 -4
- package/package.json +1 -1
|
@@ -86,7 +86,7 @@ var Paragraph = /*#__PURE__*/function (_React$Component2) {
|
|
|
86
86
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
87
87
|
style: _objectSpread({}, this.props.style),
|
|
88
88
|
className: baseClasses
|
|
89
|
-
}, /*#__PURE__*/_react["default"].createElement(_componentHeader["default"], this.props), /*#__PURE__*/_react["default"].createElement("
|
|
89
|
+
}, /*#__PURE__*/_react["default"].createElement(_componentHeader["default"], this.props), /*#__PURE__*/_react["default"].createElement("div", {
|
|
90
90
|
className: classNames,
|
|
91
91
|
dangerouslySetInnerHTML: {
|
|
92
92
|
__html: _myxss["default"].process(this.props.data.content)
|
|
@@ -1031,9 +1031,9 @@ var Range = /*#__PURE__*/function (_React$Component19) {
|
|
|
1031
1031
|
var name = this.props.data.field_name;
|
|
1032
1032
|
props.type = 'range';
|
|
1033
1033
|
props.list = "tickmarks_".concat(name);
|
|
1034
|
-
props.min = this.props.data.min_value;
|
|
1035
|
-
props.max = this.props.data.max_value;
|
|
1036
|
-
props.step = this.props.data.step;
|
|
1034
|
+
props.min = Number(this.props.data.min_value);
|
|
1035
|
+
props.max = Number(this.props.data.max_value);
|
|
1036
|
+
props.step = Number(this.props.data.step) || 1;
|
|
1037
1037
|
props.value = this.state.value;
|
|
1038
1038
|
props.change = this.changeValue;
|
|
1039
1039
|
if (this.props.mutable) {
|