diff --git a/src/shared/components/app/app.tsx b/src/shared/components/app/app.tsx index d56b9caf..2fb3a380 100644 --- a/src/shared/components/app/app.tsx +++ b/src/shared/components/app/app.tsx @@ -16,13 +16,15 @@ import AnonymousGuard from "../common/anonymous-guard"; import AdultConsentModal from "../common/modal/adult-consent-modal"; import { destroyTippy, setupTippy } from "../../tippy"; -function handleJumpToContent(event) { +function handleJumpToContent(app: App, event: any) { event.preventDefault(); + app.contentRef.current?.focus(); } export default class App extends Component { private isoData: IsoDataOptionalSite = setIsoData(this.context); private readonly rootRef = createRef(); + readonly contentRef = createRef(); componentDidMount() { setupTippy(this.rootRef); @@ -69,7 +71,7 @@ export default class App extends Component { return ( -
+
{RouteComponent && (isAuthPath(path ?? "") ? (