From db16b916191c4e0eafff873bcfb9a4cb22507b56 Mon Sep 17 00:00:00 2001 From: amy-corson-ibigroup <115499534+amy-corson-ibigroup@users.noreply.github.com> Date: Thu, 15 Aug 2024 13:33:44 -0500 Subject: [PATCH] fix(wizard): AT reads correct step number in account setup --- lib/components/user/wizard.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/components/user/wizard.tsx b/lib/components/user/wizard.tsx index d2f767a45..e41805d75 100644 --- a/lib/components/user/wizard.tsx +++ b/lib/components/user/wizard.tsx @@ -91,7 +91,6 @@ class Wizard extends Component { } this._routeTo(nextId) } - this._focusHeader() } else { // Display a toast to acknowledge saved changes // (although in reality, changes quietly took effect in previous screens). @@ -106,7 +105,6 @@ class Wizard extends Component { const prevId = pages[activePaneIndex - 1] prevId && this._routeTo(prevId) } - this._focusHeader() } componentDidMount(): void { @@ -117,6 +115,12 @@ class Wizard extends Component { } } + componentDidUpdate(prevProps: Readonly): void { + if (prevProps.activePane !== this.props.activePane) { + this._focusHeader() + } + } + render() { const { activePane, activePaneIndex, formikProps, pages, title } = this.props