Skip to content

Commit

Permalink
Fix: focusFirst on document.body when navigating to a contentObject (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-allen-89 authored Sep 18, 2023
1 parent c717010 commit 8b0e3f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 8b0e3f5

Please sign in to comment.