lisichatbot 2.0.5 → 2.0.6
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/package.json +1 -1
- package/src/index.js +7 -0
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -3625,6 +3625,13 @@ function goToStep(stepNumber) {
|
|
|
3625
3625
|
chatState.step = stepNumber;
|
|
3626
3626
|
chatState.currentSelection = null;
|
|
3627
3627
|
|
|
3628
|
+
// ✅ NEW: When editing, override disableInputValuePrefill for this step's field
|
|
3629
|
+
const targetStep = flowData.flow[stepNumber];
|
|
3630
|
+
if (targetStep?.input?.field && chatState.data[targetStep.input.field] !== undefined) {
|
|
3631
|
+
chatState.prefillOverrideFields = [targetStep.input.field];
|
|
3632
|
+
console.log(` 🔓 Set prefill override for field: ${targetStep.input.field}`);
|
|
3633
|
+
}
|
|
3634
|
+
|
|
3628
3635
|
console.log(` Keeping messages visible (not clearing)...`);
|
|
3629
3636
|
|
|
3630
3637
|
console.log(` Disabling next button and calling showNextStep()...`);
|