react-form-builder-more-flexibility 1.0.50 → 1.0.51
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 +6 -6
- package/lib/form-elements/index.js +6 -3
- package/package.json +1 -1
|
@@ -604,7 +604,7 @@ var Checkbox = /*#__PURE__*/function (_React$Component14) {
|
|
|
604
604
|
_this11.props.onCheckboxClick(_this11.props.data); // Pass the field name or data to the parent component
|
|
605
605
|
}
|
|
606
606
|
});
|
|
607
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this11), "handleLabelClick", function (
|
|
607
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this11), "handleLabelClick", function () {
|
|
608
608
|
if (_this11.props.data && _this11.props.data.hasPopUp) {
|
|
609
609
|
_this11.clickDetected();
|
|
610
610
|
}
|
|
@@ -639,13 +639,16 @@ var Checkbox = /*#__PURE__*/function (_React$Component14) {
|
|
|
639
639
|
passUpClick: this.clickDetected,
|
|
640
640
|
className: "form-label"
|
|
641
641
|
}, this.props)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
642
|
-
className: "form-check
|
|
642
|
+
className: "form-check"
|
|
643
643
|
}, /*#__PURE__*/_react["default"].createElement("input", (0, _extends2["default"])({
|
|
644
644
|
className: "form-check-input",
|
|
645
645
|
id: this.props.data.field_name
|
|
646
|
-
}, props
|
|
646
|
+
}, props, {
|
|
647
|
+
onClick: this.clickDetected
|
|
648
|
+
})), /*#__PURE__*/_react["default"].createElement("label", {
|
|
647
649
|
className: "form-check-label",
|
|
648
650
|
onClick: this.handleLabelClick,
|
|
651
|
+
htmlFor: this.props.data.field_name,
|
|
649
652
|
dangerouslySetInnerHTML: {
|
|
650
653
|
__html: this.props.data.boxLabel
|
|
651
654
|
}
|