From 9e7efd4e774d87ab36f77d4b71272f34dbe88aad Mon Sep 17 00:00:00 2001 From: Jiahao Li Date: Tue, 4 Aug 2020 13:02:59 +0800 Subject: [PATCH] fix: dont't set display none when visible is true --- src/Dialog.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; }