react-form-builder-more-flexibility 1.0.50 → 1.0.52

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.
@@ -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 (event) {
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,11 +639,13 @@ 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 form-check-inline"
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)), /*#__PURE__*/_react["default"].createElement("label", {
646
+ }, props, {
647
+ onClick: this.clickDetected
648
+ })), /*#__PURE__*/_react["default"].createElement("label", {
647
649
  className: "form-check-label",
648
650
  onClick: this.handleLabelClick,
649
651
  dangerouslySetInnerHTML: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-form-builder-more-flexibility",
3
- "version": "1.0.50",
3
+ "version": "1.0.52",
4
4
  "description": "A complete form builder for react.",
5
5
  "main": "lib/index.js",
6
6
  "types": "types/index.d.ts",