From 95c4c3524e6de117044b50f8c9b553a231152ec3 Mon Sep 17 00:00:00 2001 From: Robert Mennell Date: Fri, 9 Nov 2018 08:37:12 +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 6da38b46b..302fd497d 100644 --- a/snippets/ModalDialog.md +++ b/snippets/ModalDialog.md @@ -119,7 +119,7 @@ class Dialog extends React.Component { })); } modalClick() { - if (this.props.closeOnClick) this.close(); + if (this.state.data.closeOnClick) this.close(); } } ```