From ae533920ea57fd2ad61b88038d62991e3ce055cb Mon Sep 17 00:00:00 2001 From: Robert Mennell Date: Thu, 8 Nov 2018 16:05:52 +0800 Subject: [PATCH] Update snippets/ModalDialog.md Co-Authored-By: zhongdeming428 --- snippets/ModalDialog.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/ModalDialog.md b/snippets/ModalDialog.md index 486e7075f..bcae5417c 100644 --- a/snippets/ModalDialog.md +++ b/snippets/ModalDialog.md @@ -110,7 +110,7 @@ class Dialog extends React.Component { })); } modalClick() { - if (this.props.clickModal2Hide) this.close(); + if (this.props.closeOnClick) this.close(); } } ```