Skip to content

Commit

Permalink
fix(wizard): AT reads correct step number in account setup
Browse files Browse the repository at this point in the history
  • Loading branch information
amy-corson-ibigroup committed Aug 15, 2024
1 parent ac565c7 commit db16b91
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/components/user/wizard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ class Wizard extends Component<Props> {
}
this._routeTo(nextId)
}
this._focusHeader()
} else {
// Display a toast to acknowledge saved changes
// (although in reality, changes quietly took effect in previous screens).
Expand All @@ -106,7 +105,6 @@ class Wizard extends Component<Props> {
const prevId = pages[activePaneIndex - 1]
prevId && this._routeTo(prevId)
}
this._focusHeader()
}

componentDidMount(): void {
Expand All @@ -117,6 +115,12 @@ class Wizard extends Component<Props> {
}
}

componentDidUpdate(prevProps: Readonly<Props>): void {
if (prevProps.activePane !== this.props.activePane) {
this._focusHeader()
}
}

render() {
const { activePane, activePaneIndex, formikProps, pages, title } =
this.props
Expand Down

0 comments on commit db16b91

Please sign in to comment.