From 62078b7d40f76fae1a7a847845fc1b0b24f2d755 Mon Sep 17 00:00:00 2001 From: Oliver Evans Date: Wed, 21 Aug 2019 16:59:31 +0100 Subject: [PATCH] Add BackdropComponent prop to resolve issue with transitionDuration prop on MUI v4 (#67) --- src/AutoRotatingCarousel.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/AutoRotatingCarousel.js b/src/AutoRotatingCarousel.js index 5121842..45ea7c3 100644 --- a/src/AutoRotatingCarousel.js +++ b/src/AutoRotatingCarousel.js @@ -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' @@ -188,6 +189,7 @@ class AutoRotatingCarousel extends Component { })} open={open} onClose={onClose} + BackdropComponent={Backdrop} BackdropProps={ModalProps ? { transitionDuration, ...ModalProps.BackdropProps } : { transitionDuration }} {...ModalProps} >