Skip to content

Commit

Permalink
Add BackdropComponent prop to resolve issue with transitionDuration p…
Browse files Browse the repository at this point in the history
…rop on MUI v4 (#67)
  • Loading branch information
OliverJEvans authored and leMaik committed Aug 21, 2019
1 parent 8af2f46 commit 62078b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/AutoRotatingCarousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import ArrowBackIcon from '@material-ui/icons/ArrowBack'
import ArrowForwardIcon from '@material-ui/icons/ArrowForward'
import Modal from '@material-ui/core/Modal'
import Fade from '@material-ui/core/Fade'
import Backdrop from '@material-ui/core/Backdrop'
import Dots from 'material-ui-dots'
import classNames from 'classnames'
import Carousel from './SwipableCarouselView'
Expand Down Expand Up @@ -188,6 +189,7 @@ class AutoRotatingCarousel extends Component {
})}
open={open}
onClose={onClose}
BackdropComponent={Backdrop}
BackdropProps={ModalProps ? { transitionDuration, ...ModalProps.BackdropProps } : { transitionDuration }}
{...ModalProps}
>
Expand Down

0 comments on commit 62078b7

Please sign in to comment.