From 8b0e3f5eea1bf9410b624e5971a6daf6610744e3 Mon Sep 17 00:00:00 2001 From: joe-allen-89 <85872286+joe-allen-89@users.noreply.github.com> Date: Mon, 18 Sep 2023 10:47:21 +0100 Subject: [PATCH] Fix: focusFirst on document.body when navigating to a contentObject (#432) --- js/router.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/router.js b/js/router.js index 6b4a737d..53e6b4cd 100644 --- a/js/router.js +++ b/js/router.js @@ -368,6 +368,10 @@ class Router extends Backbone.Router { resolve(); }, 1))); this.isScrolling = false; + if (currentModel.isTypeGroup('contentobject')) { + a11y.focusFirst(document.body); + return; + } } await Adapt.parentView.renderTo(currentModelId); }