impact-chatbot 2.3.97 → 2.3.98

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/dist/index.cjs.js CHANGED
@@ -16692,6 +16692,12 @@ const SmartBot = (props) => {
16692
16692
  const root = smartBotWrapperRef.current;
16693
16693
  if (!root)
16694
16694
  return;
16695
+ // If the bot container is hidden, skip collapse — prevents the
16696
+ // "Collapse chatbot" button from being programmatically clicked while
16697
+ // the bot is invisible, which would leave it in collapsed state when
16698
+ // the user reopens it (see: Ask Iris opens minimized on second open).
16699
+ if (root.classList.contains(classes.hideBotStyle))
16700
+ return;
16695
16701
  if (root.contains(e.target))
16696
16702
  return; // interaction inside the bot → ignore
16697
16703
  // The Rename / Delete modals render in a MUI portal outside the bot's DOM