We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6904446 commit ab127f1Copy full SHA for ab127f1
js/a11y/browserFocus.js
@@ -45,6 +45,10 @@ export default class BrowserFocus extends Backbone.Controller {
45
if (event.target !== event.currentTarget) {
46
return;
47
}
48
+ // Do not auto next if the focus isn't returning to the body
49
+ if (!$(event.relatedTarget).is('body')) {
50
+ return;
51
+ }
52
// Check if element losing focus is losing focus
53
// due to the addition of a disabled class
54
if (!$element.is('[disabled]') && $element.css('display') !== 'none' && $element.css('visibility') !== 'hidden') {
0 commit comments