Skip to content

Commit

Permalink
[Menu] Fix a regression on Edge (#11614)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari authored May 28, 2018
1 parent 999d06f commit d7bf410
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/material-ui/src/MenuList/MenuList.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,12 @@ class MenuList extends React.Component {
resetTabIndex() {
const list = ReactDOM.findDOMNode(this.list);
const currentFocus = activeElement(ownerDocument(list));
const items = [...list.children];

const items = [];
for (let i = 0; i < list.children.length; i += 1) {
items.push(list.children[i]);
}

const currentFocusIndex = items.indexOf(currentFocus);

if (currentFocusIndex !== -1) {
Expand Down

0 comments on commit d7bf410

Please sign in to comment.