Skip to content

Commit

Permalink
[fixed] when overlay animation is false the transition prop passed to…
Browse files Browse the repository at this point in the history
… base

overlay should be null so that it does not trigger a React PropTypes warning

Signed-off-by: Charles Hansen <chansen@pivotal.io>
  • Loading branch information
rdy committed Nov 6, 2015
1 parent 1173725 commit 44b3b9e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Overlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 44b3b9e

Please sign in to comment.