diff --git a/js/a11y.js b/js/a11y.js index eb3d31d7..a3115824 100644 --- a/js/a11y.js +++ b/js/a11y.js @@ -730,6 +730,12 @@ class A11y extends Backbone.Controller { focusFirst($element, options) { options = new FocusOptions(options); $element = $($element).first(); + const isBodyFocus = ($element[0] === document.body); + if (isBodyFocus) { + // force focus to the body, effectively starting the tab cursor from the top + this.focus($element, options); + return; + } if (this.isReadable($element)) { this.focus($element, options); return $element;