diff --git a/src/Dialog.tsx b/src/Dialog.tsx index 7d824b9b..32473c2f 100644 --- a/src/Dialog.tsx +++ b/src/Dialog.tsx @@ -85,7 +85,7 @@ export default class Dialog extends React.Component { // if forceRender is true, set element style display to be none; if ( (this.props.forceRender || (this.props.getContainer === false && !this.props.visible)) && - this.wrap + this.wrap && !this.prop.visible ) { this.wrap.style.display = 'none'; }