Skip to content

Commit

Permalink
Update packages/material-ui/src/Unstable_TrapFocus/Unstable_TrapFocus.js
Browse files Browse the repository at this point in the history
Co-authored-by: gregn <[email protected]>
  • Loading branch information
oliviertassinari and gregnb committed Nov 25, 2020
1 parent 4beecd0 commit 1b6990f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ function getTabIndex(node) {
}

// Browsers do not return `tabIndex` correctly for contentEditable nodes;
// https://bugs.chromium.org/p/chromium/issues/detail?id=661108&q=contenteditable%20tabindex&can=2
// so if they don't have a tabindex attribute specifically set, assume it's 0.
// in Chrome, <details/>, <audio controls/> and <video controls/> elements get a default
// `tabIndex` of -1 when the 'tabindex' attribute isn't specified in the DOM,
Expand Down

0 comments on commit 1b6990f

Please sign in to comment.