lisichatbot 1.6.3 → 1.6.4
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 +24 -0
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -2118,6 +2118,12 @@ async function handleNext() {
|
|
|
2118
2118
|
chatState.currentSelection = null;
|
|
2119
2119
|
disableNextButton();
|
|
2120
2120
|
await showNextStep();
|
|
2121
|
+
|
|
2122
|
+
// ✅ NEW: Extra scroll after jump to ensure inputs are visible
|
|
2123
|
+
setTimeout(() => {
|
|
2124
|
+
scrollToBottom();
|
|
2125
|
+
}, 350);
|
|
2126
|
+
|
|
2121
2127
|
return;
|
|
2122
2128
|
} else {
|
|
2123
2129
|
console.error(`❌ No step found with name: "${stepName}"`);
|
|
@@ -2150,6 +2156,12 @@ async function handleNext() {
|
|
|
2150
2156
|
chatState.currentSelection = null;
|
|
2151
2157
|
disableNextButton();
|
|
2152
2158
|
await showNextStep();
|
|
2159
|
+
|
|
2160
|
+
// ✅ NEW: Extra scroll after jump to ensure inputs are visible
|
|
2161
|
+
setTimeout(() => {
|
|
2162
|
+
scrollToBottom();
|
|
2163
|
+
}, 350);
|
|
2164
|
+
|
|
2153
2165
|
return;
|
|
2154
2166
|
} else {
|
|
2155
2167
|
console.error(`Invalid step number: ${targetStep}`);
|
|
@@ -2642,6 +2654,12 @@ async function showNextStep() {
|
|
|
2642
2654
|
chatState.currentSelection = null;
|
|
2643
2655
|
disableNextButton();
|
|
2644
2656
|
await showNextStep();
|
|
2657
|
+
|
|
2658
|
+
// ✅ NEW: Extra scroll after jump to ensure inputs are visible
|
|
2659
|
+
setTimeout(() => {
|
|
2660
|
+
scrollToBottom();
|
|
2661
|
+
}, 350);
|
|
2662
|
+
|
|
2645
2663
|
return;
|
|
2646
2664
|
} else {
|
|
2647
2665
|
console.error(`❌ No step found with name: "${stepName}"`);
|
|
@@ -2674,6 +2692,12 @@ async function showNextStep() {
|
|
|
2674
2692
|
chatState.currentSelection = null;
|
|
2675
2693
|
disableNextButton();
|
|
2676
2694
|
await showNextStep();
|
|
2695
|
+
|
|
2696
|
+
// ✅ NEW: Extra scroll after jump to ensure inputs are visible
|
|
2697
|
+
setTimeout(() => {
|
|
2698
|
+
scrollToBottom();
|
|
2699
|
+
}, 350);
|
|
2700
|
+
|
|
2677
2701
|
return;
|
|
2678
2702
|
} else {
|
|
2679
2703
|
console.error(`Invalid step number: ${targetStep}`);
|