From 44b3b9e9c76b785b9b239051f65f976d062713ae Mon Sep 17 00:00:00 2001 From: Ryan Dy Date: Fri, 6 Nov 2015 11:40:02 -0800 Subject: [PATCH] [fixed] when overlay animation is false the transition prop passed to base overlay should be null so that it does not trigger a React PropTypes warning Signed-off-by: Charles Hansen --- src/Overlay.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Overlay.js b/src/Overlay.js index e5f260eadb..a7dd650885 100644 --- a/src/Overlay.js +++ b/src/Overlay.js @@ -19,6 +19,10 @@ class Overlay extends React.Component { transition = Fade; } + if (transition === false) { + transition = null; + } + if (!transition) { child = cloneElement(child, { className: classNames('in', child.props.className)