@xapp/chat-widget 1.98.3 → 1.98.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/dist/index.js CHANGED
@@ -37280,7 +37280,13 @@ var ChatWidgetUI = function (props) {
37280
37280
  }));
37281
37281
  setVisible(true);
37282
37282
  setTimeout(function () {
37283
- document.getElementById("chatWidgetInput").focus();
37283
+ var _a;
37284
+ // preventScroll, because this lands 100ms into the 0.3s widget-show translateY.
37285
+ // A plain focus() lets the browser scroll the input into view against a panel
37286
+ // that is still moving; it settles on an offset nobody asked for and the input
37287
+ // sits far up the screen until the user scrolls by hand. Nothing needs scrolling
37288
+ // here anyway - the panel is already full-screen on mobile. Device, 2026-09-09.
37289
+ (_a = document.getElementById("chatWidgetInput")) === null || _a === void 0 ? void 0 : _a.focus({ preventScroll: true });
37284
37290
  }, 100);
37285
37291
  }
37286
37292
  function handleCtaDismiss() {