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.esm.js CHANGED
@@ -16670,6 +16670,12 @@ const SmartBot = (props) => {
16670
16670
  const root = smartBotWrapperRef.current;
16671
16671
  if (!root)
16672
16672
  return;
16673
+ // If the bot container is hidden, skip collapse — prevents the
16674
+ // "Collapse chatbot" button from being programmatically clicked while
16675
+ // the bot is invisible, which would leave it in collapsed state when
16676
+ // the user reopens it (see: Ask Iris opens minimized on second open).
16677
+ if (root.classList.contains(classes.hideBotStyle))
16678
+ return;
16673
16679
  if (root.contains(e.target))
16674
16680
  return; // interaction inside the bot → ignore
16675
16681
  // The Rename / Delete modals render in a MUI portal outside the bot's DOM