diff --git a/packages/patternfly-3/patternfly-react/src/components/ModelessOverlay/ModelessOverlay.js b/packages/patternfly-3/patternfly-react/src/components/ModelessOverlay/ModelessOverlay.js index e5d2bc34654..109bb8f7cee 100644 --- a/packages/patternfly-3/patternfly-react/src/components/ModelessOverlay/ModelessOverlay.js +++ b/packages/patternfly-3/patternfly-react/src/components/ModelessOverlay/ModelessOverlay.js @@ -8,7 +8,7 @@ class ModelessOverlay extends React.Component { constructor(props) { super(props); this.state = { isIn: false }; - this.inTimer = new Timer(null, 150); + this.inTimer = new Timer(this.updateForTransitions, 150); } componentWillUnmount() { @@ -30,7 +30,8 @@ class ModelessOverlay extends React.Component { ); if (isIn !== show) { - this.inTimer.startTimer(() => this.updateForTransitions(), show ? 0 : 150); + this.inTimer.clearTimer(); + this.inTimer.startTimer(); } const dialogClasses = classNames('modal-dialog', {