From 0399f166119fc360c5d69192038a3a0b9ce5747b Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Fri, 31 May 2019 16:22:46 +0200 Subject: [PATCH] [CircularProgress] Handle default props regression --- packages/material-ui/src/CircularProgress/CircularProgress.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/material-ui/src/CircularProgress/CircularProgress.js b/packages/material-ui/src/CircularProgress/CircularProgress.js index 76ab4276e2c36f..493aabe0f4928b 100644 --- a/packages/material-ui/src/CircularProgress/CircularProgress.js +++ b/packages/material-ui/src/CircularProgress/CircularProgress.js @@ -191,7 +191,7 @@ CircularProgress.propTypes = { * This only works if variant is `indeterminate`. */ disableShrink: chainPropTypes(PropTypes.bool, props => { - if (props.disableShrink && props.variant !== 'indeterminate') { + if (props.disableShrink && props.variant && props.variant !== 'indeterminate') { return new Error( 'Material-UI: you have provided the `disableShrink` property ' + 'with a variant other than `indeterminate`. This will have no effect.',