Skip to content

Commit

Permalink
fix(focuslock): array spread iterator breaks in IE11 (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesb3ll authored Dec 9, 2019
1 parent 80919ca commit d9a43e0
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 12 deletions.
41 changes: 30 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion src/components/FocusLock/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ class LockWrapper extends Component {
this.base = findDOMNode(this);

// Tabbable visible elements
const tabbables = [...this.base.querySelectorAll(tabbableSelector)].filter(
const tabbables = Array.from(
this.base.querySelectorAll(tabbableSelector)
).filter(
node =>
node.offsetParent !== null &&
window.getComputedStyle(node).visibility !== 'hidden'
Expand Down

0 comments on commit d9a43e0

Please sign in to comment.