Fix scroll to on step change test

Signed-off-by: Stephen Glass <stephen@stephen.glass>
This commit is contained in:
Stephen Glass
2025-07-06 00:57:12 -04:00
parent 428b4349f4
commit 7f650756b1
@@ -221,7 +221,7 @@ export const Stepper = (stepperProps: StepperProps) => {
useEffect(() => {
const main = document.querySelector('main');
if (main) {
if (main && typeof main.scrollTo === 'function') {
main.scrollTo({ top: 0, behavior: 'auto' });
}
}, [activeStep]);