From 386a61320c02c02820af4a389bc279c5f64a863f Mon Sep 17 00:00:00 2001 From: totothink Date: Tue, 31 May 2016 16:15:48 +0800 Subject: [PATCH] fix: resolve removeScrollingEffect not execution when this.refs.wrap is undefined --- src/Dialog.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Dialog.jsx b/src/Dialog.jsx index 47c97f6f..68a2da15 100644 --- a/src/Dialog.jsx +++ b/src/Dialog.jsx @@ -118,8 +118,8 @@ const Dialog = React.createClass({ // https://github.com/react-component/dialog/pull/28 if (this.refs.wrap) { this.refs.wrap.style.display = 'none'; - this.removeScrollingEffect(); } + this.removeScrollingEffect(); this.props.onAfterClose(); },