lisichatbot 1.7.0 → 1.7.1
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 +12 -0
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -1111,6 +1111,7 @@ function renderMinMaxInputs(field, customConfig, existingData) {
|
|
|
1111
1111
|
rangeWrapper.appendChild(errorDiv);
|
|
1112
1112
|
|
|
1113
1113
|
elements.messages.appendChild(rangeWrapper);
|
|
1114
|
+
scrollToBottom(); // ✅ Scroll after adding range inputs
|
|
1114
1115
|
|
|
1115
1116
|
if (minInput && maxInput) {
|
|
1116
1117
|
const updateVisualFeedback = () => {
|
|
@@ -1180,6 +1181,10 @@ function selectCustomOption(field) {
|
|
|
1180
1181
|
const rangeWrapper = document.querySelector(`[data-chat-element="range-wrapper"][data-field="${field}"]`);
|
|
1181
1182
|
if (rangeWrapper) {
|
|
1182
1183
|
rangeWrapper.style.display = 'flex';
|
|
1184
|
+
// ✅ Scroll after showing range inputs
|
|
1185
|
+
setTimeout(() => {
|
|
1186
|
+
scrollToBottom();
|
|
1187
|
+
}, 100);
|
|
1183
1188
|
}
|
|
1184
1189
|
}
|
|
1185
1190
|
|
|
@@ -3025,6 +3030,13 @@ function handleCompletion() {
|
|
|
3025
3030
|
chatState.completed = true;
|
|
3026
3031
|
console.log(' 🏁 Flow marked as completed');
|
|
3027
3032
|
|
|
3033
|
+
// ✅ Hide all range wrappers (single-select-custom inputs)
|
|
3034
|
+
const allRangeWrappers = document.querySelectorAll('[data-chat-element="range-wrapper"]');
|
|
3035
|
+
allRangeWrappers.forEach(wrapper => {
|
|
3036
|
+
wrapper.style.display = 'none';
|
|
3037
|
+
});
|
|
3038
|
+
console.log(' 🙈 Hidden all range-wrappers on completion');
|
|
3039
|
+
|
|
3028
3040
|
updateEditIcons();
|
|
3029
3041
|
|
|
3030
3042
|
if (elements.nextBtn) {
|