From a721df410c66ddc6bca8b1658d88154e6a2ecaff Mon Sep 17 00:00:00 2001 From: amy-corson-ibigroup <115499534+amy-corson-ibigroup@users.noreply.github.com> Date: Tue, 15 Aug 2023 10:29:35 -0500 Subject: [PATCH 1/2] feat: reset focus to top on each account step --- lib/components/user/sequential-pane-display.tsx | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/lib/components/user/sequential-pane-display.tsx b/lib/components/user/sequential-pane-display.tsx index 1939d67af..adf171e21 100644 --- a/lib/components/user/sequential-pane-display.tsx +++ b/lib/components/user/sequential-pane-display.tsx @@ -50,6 +50,12 @@ class SequentialPaneDisplay extends Component> { routeTo(`${parentPath}/${nextId}`) } + h1Ref = React.createRef() + + _handleFocus = () => { + this.h1Ref?.current?.focus() + } + _handleToNextPane = async (e: MouseEvent