Skip to content

Commit

Permalink
issue/3064 Cannot spread non-iterable jquery object in ie11 (#3065)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverfoster authored Mar 11, 2021
1 parent 2278c74 commit 91bc022
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/js/a11y/browserFocus.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default class BrowserFocus extends Backbone.Controller {
if (!config._isEnabled || !config._options._isFocusOnClickEnabled) {
return;
}
const $stack = $([...$element, ...$element.parents()]);
const $stack = $([...$element.toArray(), ...$element.parents().toArray()]);
const $focusable = $stack.filter(config._options._tabbableElements);
if (!$focusable.length) {
return;
Expand Down

0 comments on commit 91bc022

Please sign in to comment.