@homebound/beam 4.46.0 → 4.46.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/dist/index.cjs CHANGED
@@ -33566,6 +33566,16 @@ function WorkflowPageLayout(props) {
33566
33566
  }
33567
33567
  };
33568
33568
  }, [showFooter]);
33569
+ const currentStep = stepperTabs?.currentStep;
33570
+ const prevStepRef = (0, import_react186.useRef)(currentStep);
33571
+ (0, import_react186.useLayoutEffect)(() => {
33572
+ if (prevStepRef.current === currentStep) return;
33573
+ prevStepRef.current = currentStep;
33574
+ window.scrollTo({
33575
+ top: 0,
33576
+ left: 0
33577
+ });
33578
+ }, [currentStep]);
33569
33579
  return /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)(DocumentScrollLayoutProvider, { children: [
33570
33580
  /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)("div", { ...(0, import_runtime176.mergeProps)(void 0, style, {
33571
33581
  display: "df",