react-survey-builder 1.0.99 → 1.0.100
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/bundle.js +2 -2
- package/lib/form-steps.js +6 -1
- package/lib/survey-elements/index.js +6 -3
- package/package.json +1 -1
package/lib/form-steps.js
CHANGED
@@ -371,7 +371,12 @@ var ReactSurveyFormSteps = function ReactSurveyFormSteps(_ref) {
|
|
371
371
|
checkboxButtonClassName: item.element === 'RadioButtons' || item.element === 'ButtonList' || item.element === 'Checkbox' ? checkboxButtonClassName !== null && checkboxButtonClassName !== void 0 ? checkboxButtonClassName : null : null,
|
372
372
|
labelClassName: labelClassName,
|
373
373
|
helpClassName: helpClassName,
|
374
|
-
onSelect: item.element === 'ButtonList' ?
|
374
|
+
onSelect: item.element === 'ButtonList' ? function (e) {
|
375
|
+
if (item.element === 'ButtonList') {
|
376
|
+
_onChange(e);
|
377
|
+
handleSelect(e);
|
378
|
+
}
|
379
|
+
} : undefined
|
375
380
|
});
|
376
381
|
}
|
377
382
|
});
|
@@ -2201,13 +2201,16 @@ export var ButtonList = /*#__PURE__*/function (_React$Component5) {
|
|
2201
2201
|
value: option.value,
|
2202
2202
|
checked: (self === null || self === void 0 || (_self$props16 = self.props) === null || _self$props16 === void 0 ? void 0 : _self$props16.value) === option.value,
|
2203
2203
|
onChange: function onChange(e) {
|
2204
|
-
var _self$props17
|
2204
|
+
var _self$props17;
|
2205
2205
|
if ((self === null || self === void 0 || (_self$props17 = self.props) === null || _self$props17 === void 0 ? void 0 : _self$props17.onChange) !== undefined) {
|
2206
|
-
console.log(e.target.value);
|
2206
|
+
// console.log(e.target.value);
|
2207
2207
|
self.props.onChange(e.target.value);
|
2208
2208
|
}
|
2209
|
+
},
|
2210
|
+
onClick: function onClick(e) {
|
2211
|
+
var _self$props18;
|
2209
2212
|
if ((self === null || self === void 0 || (_self$props18 = self.props) === null || _self$props18 === void 0 ? void 0 : _self$props18.onSelect) !== undefined) {
|
2210
|
-
console.log(e.target.value);
|
2213
|
+
// console.log(e.target.value);
|
2211
2214
|
self.props.onSelect(e.target.value);
|
2212
2215
|
}
|
2213
2216
|
}
|