lisichatbot 1.6.2 → 1.6.3
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 +11 -0
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -2373,6 +2373,12 @@ async function handleNext() {
|
|
|
2373
2373
|
}
|
|
2374
2374
|
|
|
2375
2375
|
await showNextStep();
|
|
2376
|
+
|
|
2377
|
+
// ✅ NEW: Extra scroll after step is shown to ensure visibility
|
|
2378
|
+
// This catches cases where showMessage was called in onNext before progressing
|
|
2379
|
+
setTimeout(() => {
|
|
2380
|
+
scrollToBottom();
|
|
2381
|
+
}, 350);
|
|
2376
2382
|
}
|
|
2377
2383
|
|
|
2378
2384
|
// ✅ NEW: Helper function to find next step that is accessible in normal flow
|
|
@@ -2890,6 +2896,11 @@ async function showNextStep() {
|
|
|
2890
2896
|
setTimeout(() => {
|
|
2891
2897
|
scrollToBottom();
|
|
2892
2898
|
}, 150);
|
|
2899
|
+
|
|
2900
|
+
// ✅ NEW: Extra delayed scroll to catch cases where showMessage was called before this step
|
|
2901
|
+
setTimeout(() => {
|
|
2902
|
+
scrollToBottom();
|
|
2903
|
+
}, 300);
|
|
2893
2904
|
}
|
|
2894
2905
|
|
|
2895
2906
|
function handleCompletion() {
|