Skip to content

Commit

Permalink
[Modal] fix for tabindex
Browse files Browse the repository at this point in the history
fixes #17937
  • Loading branch information
Cyrus authored Oct 19, 2019
1 parent f8080a6 commit 0ae154d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/material-ui/src/Modal/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ const Modal = React.forwardRef(function Modal(inProps, ref) {

const inlineStyle = styles(theme || { zIndex });
const childProps = {};
if (children.tabIndex === undefined) {
childProps.tabIndex = children.tabIndex || '-1';
if (children.props.tabIndex === undefined) {
childProps.tabIndex = children.props.tabIndex || '-1';
}

// It's a Transition like component
Expand Down

0 comments on commit 0ae154d

Please sign in to comment.