Skip to content

Commit

Permalink
feat(listitem): children accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
yalo authored and bfbiggs committed Jun 10, 2020
1 parent 9625497 commit c77d480
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions react/src/lib/ListItem/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,6 @@ class ListItem extends React.Component {
// only allow focus of tabbable children if TAB on the current listitem
if (e.target.classList.contains('md-list-item')) {
this.changeTabIndex(tabbableChildren, 0);
} else if (e.target === tabbableChildren[tabbableChildren.length - 1]) {
//e.preventDefault();
//e.stopPropagation();
// cycle focus between tabbable children (last tabbable child wil' cycle back to first tabbable child)
this.changeTabIndex(tabbableChildren, 0);
}
} else if (e.keyCode === 9 && e.shiftKey) { // SHIFT + TAB
// If we are on one of the tabbable children
Expand Down

0 comments on commit c77d480

Please sign in to comment.