@iota-uz/sdk 0.4.30 → 0.4.31
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/bichat/index.cjs
CHANGED
|
@@ -16105,17 +16105,18 @@ function QuestionStep({
|
|
|
16105
16105
|
setOtherText(data.customText || "");
|
|
16106
16106
|
}, [question.id]);
|
|
16107
16107
|
const handleOptionClick = (optionID) => {
|
|
16108
|
+
setOtherText("");
|
|
16108
16109
|
if (isMultiSelect) {
|
|
16109
16110
|
const newOptions = selectedOptions.includes(optionID) ? selectedOptions.filter((a) => a !== optionID) : [...selectedOptions, optionID];
|
|
16110
|
-
onAnswer({ options: newOptions, customText:
|
|
16111
|
+
onAnswer({ options: newOptions, customText: void 0 });
|
|
16111
16112
|
} else {
|
|
16112
|
-
onAnswer({ options: [optionID], customText:
|
|
16113
|
+
onAnswer({ options: [optionID], customText: void 0 });
|
|
16113
16114
|
}
|
|
16114
16115
|
};
|
|
16115
16116
|
const handleOtherTextChange = (text) => {
|
|
16116
16117
|
setOtherText(text);
|
|
16117
16118
|
onAnswer({
|
|
16118
|
-
options:
|
|
16119
|
+
options: [],
|
|
16119
16120
|
customText: text || void 0
|
|
16120
16121
|
});
|
|
16121
16122
|
};
|