react-form-builder-more-flexibility 1.0.48 → 1.0.50
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 +0 -2
- package/lib/index.js +2 -3
- package/package.json +1 -1
|
@@ -605,7 +605,6 @@ var Checkbox = /*#__PURE__*/function (_React$Component14) {
|
|
|
605
605
|
}
|
|
606
606
|
});
|
|
607
607
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this11), "handleLabelClick", function (event) {
|
|
608
|
-
event.preventDefault();
|
|
609
608
|
if (_this11.props.data && _this11.props.data.hasPopUp) {
|
|
610
609
|
_this11.clickDetected();
|
|
611
610
|
}
|
|
@@ -647,7 +646,6 @@ var Checkbox = /*#__PURE__*/function (_React$Component14) {
|
|
|
647
646
|
}, props)), /*#__PURE__*/_react["default"].createElement("label", {
|
|
648
647
|
className: "form-check-label",
|
|
649
648
|
onClick: this.handleLabelClick,
|
|
650
|
-
htmlFor: this.props.data.field_name,
|
|
651
649
|
dangerouslySetInnerHTML: {
|
|
652
650
|
__html: this.props.data.boxLabel
|
|
653
651
|
}
|
package/lib/index.js
CHANGED
|
@@ -126,11 +126,10 @@ var ReactFormBuilder = exports.ReactFormBuilder = /*#__PURE__*/function (_React$
|
|
|
126
126
|
function ReactFormGenerator(props) {
|
|
127
127
|
var language = props.locale ? props.locale : 'en';
|
|
128
128
|
var currentAppLocale = _languageProvider["default"][language];
|
|
129
|
-
var handleCheckboxClick = function handleCheckboxClick(fieldName
|
|
130
|
-
console.log("Checkbox clicked: ".concat(fieldName, ", Checked: ").concat(isChecked));
|
|
129
|
+
var handleCheckboxClick = function handleCheckboxClick(fieldName) {
|
|
131
130
|
// Handle the checkbox click event here or pass it up to a parent
|
|
132
131
|
if (props.onCheckboxClick) {
|
|
133
|
-
props.onCheckboxClick(fieldName
|
|
132
|
+
props.onCheckboxClick(fieldName);
|
|
134
133
|
}
|
|
135
134
|
};
|
|
136
135
|
return /*#__PURE__*/_react["default"].createElement(_reactIntl.IntlProvider, {
|