lisichatbot 1.8.9 → 1.9.0
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 +2 -3
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -3331,12 +3331,11 @@ function init(flowName, flowConfig, options = {}) {
|
|
|
3331
3331
|
return null;
|
|
3332
3332
|
}
|
|
3333
3333
|
|
|
3334
|
-
// ✅ NEW: Show/hide cancel button based on config
|
|
3334
|
+
// ✅ NEW: Show/hide cancel button based on config (no styling, only visibility)
|
|
3335
3335
|
if (elements.cancelBtn) {
|
|
3336
3336
|
if (config.showCancelButton === true) {
|
|
3337
|
-
elements.cancelBtn.style.marginTop = '8px';
|
|
3338
3337
|
elements.cancelBtn.style.display = '';
|
|
3339
|
-
console.log('✅ Cancel button
|
|
3338
|
+
console.log('✅ Cancel button shown (showCancelButton: true)');
|
|
3340
3339
|
} else {
|
|
3341
3340
|
elements.cancelBtn.style.display = 'none';
|
|
3342
3341
|
console.log('🚫 Cancel button hidden (showCancelButton: false)');
|