lisichatbot 1.7.3 → 1.7.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 +37 -3
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -981,7 +981,29 @@ function renderCustomSelectOptions(options, field, customConfig) {
|
|
|
981
981
|
|
|
982
982
|
elements.messages.appendChild(optionsWrapper);
|
|
983
983
|
renderMinMaxInputs(field, customConfig, existingData);
|
|
984
|
+
|
|
985
|
+
// ✅ Very aggressive scrolling to ensure all options are visible
|
|
984
986
|
scrollToBottom();
|
|
987
|
+
|
|
988
|
+
setTimeout(() => {
|
|
989
|
+
scrollToBottom();
|
|
990
|
+
}, 50);
|
|
991
|
+
|
|
992
|
+
setTimeout(() => {
|
|
993
|
+
scrollToBottom();
|
|
994
|
+
}, 150);
|
|
995
|
+
|
|
996
|
+
setTimeout(() => {
|
|
997
|
+
scrollToBottom();
|
|
998
|
+
}, 300);
|
|
999
|
+
|
|
1000
|
+
setTimeout(() => {
|
|
1001
|
+
scrollToBottom();
|
|
1002
|
+
}, 500);
|
|
1003
|
+
|
|
1004
|
+
setTimeout(() => {
|
|
1005
|
+
scrollToBottom();
|
|
1006
|
+
}, 800);
|
|
985
1007
|
|
|
986
1008
|
const optionElements = optionsWrapper.querySelectorAll('[data-chat-input-element="container"]');
|
|
987
1009
|
optionElements.forEach(el => {
|
|
@@ -2940,18 +2962,30 @@ async function showNextStep() {
|
|
|
2940
2962
|
nextStep.input.custom
|
|
2941
2963
|
);
|
|
2942
2964
|
|
|
2943
|
-
// ✅
|
|
2965
|
+
// ✅ Very aggressive delayed scrolls to ensure all options are visible
|
|
2944
2966
|
setTimeout(() => {
|
|
2945
2967
|
scrollToBottom();
|
|
2946
2968
|
}, 100);
|
|
2947
2969
|
|
|
2948
2970
|
setTimeout(() => {
|
|
2949
2971
|
scrollToBottom();
|
|
2950
|
-
},
|
|
2972
|
+
}, 200);
|
|
2973
|
+
|
|
2974
|
+
setTimeout(() => {
|
|
2975
|
+
scrollToBottom();
|
|
2976
|
+
}, 350);
|
|
2977
|
+
|
|
2978
|
+
setTimeout(() => {
|
|
2979
|
+
scrollToBottom();
|
|
2980
|
+
}, 500);
|
|
2981
|
+
|
|
2982
|
+
setTimeout(() => {
|
|
2983
|
+
scrollToBottom();
|
|
2984
|
+
}, 700);
|
|
2951
2985
|
|
|
2952
2986
|
setTimeout(() => {
|
|
2953
2987
|
scrollToBottom();
|
|
2954
|
-
},
|
|
2988
|
+
}, 1000);
|
|
2955
2989
|
|
|
2956
2990
|
// ✅ Check if pre-filled - renderCustomSelectOptions handles enabling if pre-filled
|
|
2957
2991
|
const existingData = chatState.data[nextStep.input.field];
|