From c77d48021d7a0811c0b1fecf3069988ec2f3b122 Mon Sep 17 00:00:00 2001 From: yalo Date: Sat, 9 May 2020 02:35:56 -0700 Subject: [PATCH] feat(listitem): children accessibility --- react/src/lib/ListItem/index.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/react/src/lib/ListItem/index.js b/react/src/lib/ListItem/index.js index a61eb45feb..47841746c9 100644 --- a/react/src/lib/ListItem/index.js +++ b/react/src/lib/ListItem/index.js @@ -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